Discussion:
Update Document Parts in Java
(too old to reply)
Dmitry Varabei
2008-11-25 19:41:43 UTC
Permalink
I'd like to update Document Part (DKLobICM) using Streaming in Java.
According to SDocModelItem.java example, it is not recommended to call
.add(), .update(), or .del() directly on the Parts. It means I have to
create DDO in memory (including DKLobICM Part ) and then call ddo.update() .
Is there any way to use Streaming during Document Part update?

CM 8.4, Java API 8.3.8.

Thanks a lot,
Dmitry.
Andy
2008-12-05 02:49:51 UTC
Permalink
Post by Dmitry Varabei
I'd like to update Document Part (DKLobICM) using Streaming in Java.
According to SDocModelItem.java example, it is not recommended to call
.add(), .update(), or .del() directly on the Parts. It means I have to
create DDO in memory (including DKLobICM Part ) and then call ddo.update() .
Is there any way to use Streaming during Document Part update?
CM 8.4, Java API 8.3.8.
Thanks a lot,
Dmitry.
Hope its not too late for you, but here is how you use streaming for an
update:

http://publib.boulder.ibm.com/infocenter/cmgmt/v8r3m0/topic/com.ibm.java.doc/com/ibm/mm/sdk/common/DKLobICM.html#getUpdateLocation()

Andy
Dmitry Varabei
2008-12-19 18:48:33 UTC
Permalink
Thanks Andy,

Yeah, there is no problem with Streaming during updating DKLobICM itself.
But if DKLobICM ia s Part of a Parent Document, it is not recommended to use
update() directly:
" Adding / Modifying / Removing Parts
Parts may be added or removed by simply adding or removing them from
the Parts collection in the document. Parts are modified by
modifying
them in the document item. Do not call .add(), .update(), or .del()
directly on the Parts. The document will be responsible for
managing
the parts.
" (c)
http://publib.boulder.ibm.com/infocenter/cmgmt/v8r3m0/topic/com.ibm.samples.doc/samples/java/icm/SDocModelItemICM.java.htm
Post by Andy
Post by Dmitry Varabei
I'd like to update Document Part (DKLobICM) using Streaming in Java.
According to SDocModelItem.java example, it is not recommended to call
.add(), .update(), or .del() directly on the Parts. It means I have to
create DDO in memory (including DKLobICM Part ) and then call
ddo.update() .
Is there any way to use Streaming during Document Part update?
CM 8.4, Java API 8.3.8.
Thanks a lot,
Dmitry.
Hope its not too late for you, but here is how you use streaming for an
http://publib.boulder.ibm.com/infocenter/cmgmt/v8r3m0/topic/com.ibm.java.doc/com/ibm/mm/sdk/common/DKLobICM.html#getUpdateLocation()
Andy
Andy
2008-12-22 19:19:41 UTC
Permalink
Post by Dmitry Varabei
Thanks Andy,
Yeah, there is no problem with Streaming during updating DKLobICM itself.
But if DKLobICM ia s Part of a Parent Document, it is not recommended to use
You don't have to. Call setUpdateLocation / setAddLocation on the
DKLobICM. Then call update() on the DKDDO.

Andy
Dmitry Varabei
2008-12-23 19:10:34 UTC
Permalink
Post by Andy
Post by Dmitry Varabei
Thanks Andy,
Yeah, there is no problem with Streaming during updating DKLobICM itself.
But if DKLobICM ia s Part of a Parent Document, it is not recommended to
You don't have to. Call setUpdateLocation / setAddLocation on the
DKLobICM. Then call update() on the DKDDO.
Andy
Thanks a lot, Andy

it is exactly what I need.
I just wondering is there any way to find this possibility without reading
through DKLobICM documentation... :)

Cheers,
Dmitry.
Andy
2008-12-24 00:14:57 UTC
Permalink
Post by Dmitry Varabei
I just wondering is there any way to find this possibility without reading
through DKLobICM documentation... :)
I agree it can be a challenge to find good information sometimes. I've
been using CM for almost 10 years so its only by experience I know about
features like these.

Andy

Loading...