com.ibm.mm.sdk.common
Class DKLinkCollection
- java.lang.Object
-
- com.ibm.mm.sdk.common.DKSequentialCollection
-
- com.ibm.mm.sdk.common.DKLinkCollection
-
- All Implemented Interfaces:
- dkCollection, java.io.Serializable
public class DKLinkCollection extends DKSequentialCollection
DKLinkCollection - Represents a collection of DKLink objects.The main purpose of this class is for holding a group of DKLink objects, each of which represent a link relationship between two item DDOs.
This class supports two modes of operation:
- Member methods (addMember/removeMember): For adding/removing links one at a time with immediate persistence. Use when a small number of links are added or removed infrequently.
- Element methods (addElement/removeElement + update): For batching multiple updates together into a single persistent update. More efficient for bulk operations.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.ibm.mm.sdk.common.DKSequentialCollection
associatedAttrName, currentPosition, fileNetCollection, items, name, owner
-
-
Constructor Summary
Constructors Constructor and Description DKLinkCollection()Default constructor.DKLinkCollection(DKDDO parentFolderDDO)Constructor with parent folder context for persistent member operations.DKLinkCollection(DKDDO parentFolderDDO, DKDatastoreExtICM datastoreExt)Constructor with parent folder context and explicit extended datastore for persistent member operations.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description voidaddMember(DKLink link)dkIteratorcreateInboundIterator()Deprecated.Replaced byDKSequentialCollection::createIterator()and compare the "owner" and "target" DDO PIDs yourself.dkIteratorcreateOutboundIterator()Deprecated.Replaced byDKSequentialCollection::createIterator()and compare the "owner" and "source" DDO PIDs yourself.voidremoveAllElements()Removes all elements from the collection.voidremoveAllMembers()voidremoveMember(DKLink link)-
Methods inherited from class com.ibm.mm.sdk.common.DKSequentialCollection
addAllElements, addElement, cardinality, createIterator, getAssociatedAttrName, getFileNetCollection, getName, getOwner, insertElementAt, nextElement, removeElementAt, replaceElementAt, reset, retrieveElementAt, setAssociatedAttrName, setFileNetCollection, setName, setOwner
-
-
-
-
Constructor Detail
-
DKLinkCollection
public DKLinkCollection()
Default constructor.
-
DKLinkCollection
public DKLinkCollection(DKDDO parentFolderDDO)
Constructor with parent folder context for persistent member operations.- Parameters:
parentFolderDDO- parent folder DDO
-
DKLinkCollection
public DKLinkCollection(DKDDO parentFolderDDO, DKDatastoreExtICM datastoreExt)
Constructor with parent folder context and explicit extended datastore for persistent member operations. This constructor allows using an extended datastore (DKDatastoreExtICM) for link operations.- Parameters:
parentFolderDDO- parent folder DDOdatastoreExt- the extended datastore to use for link operations (DKDatastoreExtICM)
-
-
Method Detail
-
addMember
public void addMember(DKLink link) throws DKException, java.lang.Exception
- Throws:
DKExceptionjava.lang.Exception
-
removeMember
public void removeMember(DKLink link) throws DKException, java.lang.Exception
- Throws:
DKExceptionjava.lang.Exception
-
removeAllMembers
public void removeAllMembers() throws DKException, java.lang.Exception- Throws:
DKExceptionjava.lang.Exception
-
removeAllElements
public void removeAllElements() throws DKUsageErrorDescription copied from interface:dkCollectionRemoves all elements from the collection.- Specified by:
removeAllElementsin interfacedkCollection- Overrides:
removeAllElementsin classDKSequentialCollection- Throws:
DKUsageError- if the removal operation fails
-
createOutboundIterator
@Deprecated public dkIterator createOutboundIterator() throws DKException
Deprecated. Replaced byDKSequentialCollection::createIterator()and compare the "owner" and "source" DDO PIDs yourself.Creates an outbound iterator for this link collection.- Returns:
- an iterator for outbound links
- Throws:
DKException- if iterator creation fails
-
createInboundIterator
@Deprecated public dkIterator createInboundIterator() throws DKException
Deprecated. Replaced byDKSequentialCollection::createIterator()and compare the "owner" and "target" DDO PIDs yourself.Creates an inbound iterator for this link collection.- Returns:
- an iterator for inbound links
- Throws:
DKException- if iterator creation fails
-
-