|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.sdk.common.DKSequentialCollection | +--com.ibm.mm.sdk.common.dkQueryableCollection | +--com.ibm.mm.sdk.common.DKResults | +--com.ibm.mm.sdk.common.DKResultsFed
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId |
For details, see the class or interface |
Fields inherited from interface com.ibm.mm.sdk.common.DKConstant |
For details, see the class or interface |
Constructor Summary | |
DKResultsFed(dkDatastore ds)
Constructs a DKResults with a given datastore object. |
Method Summary | |
void |
addElement(java.lang.Object element)
Adds an element to the end of the collection, and invalidates all of the current iterators. |
int |
cardinality()
Gets the number of elements in the collection. |
dkIterator |
createIterator()
Creates a new iterator for this collection. |
dkIterator |
createMemberIterator()
Creates a new iterator for this collection. |
dkSort |
getSortFunction()
Gets the sort function. |
void |
insertElementAt(java.lang.Object element,
dkIterator iter)
Adds a new element, after the element the iterator is currently pointing at. |
int |
memberCardinality()
Gets the number of members in the collection. |
void |
removeAllElements()
Removes all elements in the collection and invalidates all other iterators. |
void |
removeElementAt(dkIterator iter)
Removes the element the iterator is currently pointing at. |
void |
replaceElementAt(java.lang.Object element,
dkIterator iter)
Replaces the element the iterator is currently pointing at. |
java.lang.Object |
retrieveElementAt(dkIterator iter)
Gets the element that the iterator is pointing at. |
void |
setSortFunction(dkSort sortFunction)
Sets the sort function for sorting this collection. |
void |
sort()
Sorts the elements in this collection using the sort function. |
void |
sort(boolean order)
Sorts the elements in this collection in the given order using the sort function. |
void |
sort(dkSort sortFunction,
boolean sortOrder)
Sorts the elements in this collection using the given sort function and sort order. |
Methods inherited from class com.ibm.mm.sdk.common.DKResults |
evaluate |
Methods inherited from class com.ibm.mm.sdk.common.dkQueryableCollection |
datastore, getDatastore, setDatastore |
Methods inherited from class com.ibm.mm.sdk.common.DKSequentialCollection |
getAssociatedAttrName, getName, getOwner, setName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.mm.sdk.common.dkCollection |
addAllElements |
Constructor Detail |
public DKResultsFed(dkDatastore ds)
ds
- the associated datastore object where the results come from.Method Detail |
public int cardinality()
cardinality
in class DKSequentialCollection
public int memberCardinality()
public dkIterator createIterator()
createIterator
in class DKSequentialCollection
public dkIterator createMemberIterator()
public java.lang.Object retrieveElementAt(dkIterator iter) throws DKUsageError
retrieveElementAt
in class DKSequentialCollection
iter
- location in collection to retrieve an object.public void addElement(java.lang.Object element) throws DKUsageError
addElement
in class DKSequentialCollection
element
- element to be added.public void insertElementAt(java.lang.Object element, dkIterator iter) throws DKUsageError
insertElementAt
in class DKSequentialCollection
element
- element to be added.iter
- location in collection.public void replaceElementAt(java.lang.Object element, dkIterator iter) throws DKUsageError
replaceElementAt
in class DKSequentialCollection
element
- element to be added.iter
- location in collection.public void removeElementAt(dkIterator iter) throws DKUsageError
removeElementAt
in class DKSequentialCollection
iter
- location in collection .public void removeAllElements() throws DKUsageError
removeAllElements
in class DKSequentialCollection
public void setSortFunction(dkSort sortFunction)
setSortFunction
in class DKSequentialCollection
sortFunction
- the sort function.public dkSort getSortFunction()
getSortFunction
in class DKSequentialCollection
public void sort() throws DKUsageError
sort
in class DKSequentialCollection
sort(dkSort sortFunction, boolean sortOrder)
public void sort(boolean order) throws DKUsageError
sort
in class DKSequentialCollection
order
- a boolean value indicating the sort order.
If true sort in ascending order, otherwise sort in descending order.sort(dkSort sortFunction, boolean sortOrder)
public void sort(dkSort sortFunction, boolean sortOrder) throws DKUsageError
sortFunction
is a function object which defines the method to get
the object key and perform comparison on them.sort
in class DKSequentialCollection
sortFunction
- the sort function.sortOrder
- a boolean value indicating the sort order.
If true
sort in ascending order, otherwise sort in descending order.
|
EIP Java APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |