com.ibm.mm.sdk.common
Class DKResults
- java.lang.Object
-
- com.ibm.mm.sdk.common.DKSequentialCollection
-
- com.ibm.mm.sdk.common.dkQueryableCollection
-
- com.ibm.mm.sdk.common.DKResults
-
- All Implemented Interfaces:
- dkCollection, dkQueryEvaluator, java.io.Serializable
public class DKResults extends dkQueryableCollection implements java.io.Serializable
DKResults - Represents a collection of query results from CM8 datastore operations.- See Also:
DKDDO,dkDatastore, 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 DKResults(dkDatastore ds)Constructs a DKResults with a given datastore object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddElement(java.lang.Object element)Adds an element to the collection.voidaddItem(DKDDO ddo)Adds a DKDDO object to the results collection.java.lang.Objectevaluate(java.lang.String query, short qlType, DKNVPair[] params)Evaluates a query against the datastore.-
Methods inherited from class com.ibm.mm.sdk.common.DKSequentialCollection
addAllElements, cardinality, createIterator, getAssociatedAttrName, getFileNetCollection, getName, getOwner, insertElementAt, nextElement, removeAllElements, removeElementAt, replaceElementAt, reset, retrieveElementAt, setAssociatedAttrName, setFileNetCollection, setName, setOwner
-
-
-
-
Constructor Detail
-
DKResults
public DKResults(dkDatastore ds)
Constructs a DKResults with a given datastore object.- Parameters:
ds- the datastore object
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(java.lang.String query, short qlType, DKNVPair[] params) throws DKException, java.lang.ExceptionEvaluates a query against the datastore.- Specified by:
evaluatein interfacedkQueryEvaluator- Parameters:
query- the query stringqlType- the query language typeparams- query parameters- Returns:
- the query results
- Throws:
DKException- if a datastore error occursjava.lang.Exception- if any other error occurs
-
addItem
public void addItem(DKDDO ddo)
Adds a DKDDO object to the results collection. Public method for use by datastore implementations.- Parameters:
ddo- the DKDDO object to add
-
addElement
public void addElement(java.lang.Object element) throws DKUsageErrorDescription copied from interface:dkCollectionAdds an element to the collection.- Specified by:
addElementin interfacedkCollection- Overrides:
addElementin classDKSequentialCollection- Parameters:
element- the element to add to the collection- Throws:
DKUsageError- if the element is null or cannot be added
-
-