com.filenet.api.core
Class RetrievingBatch
- java.lang.Object
-
- com.filenet.api.core.Batch
-
- com.filenet.api.core.RetrievingBatch
-
public class RetrievingBatch extends Batch
Creates a batch operation to retrieve objects. Once created, the batch operation is pending until you call theretrieveBatchmethod to perform the operation.- See Also:
BatchItemHandle,UpdatingBatch
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description BatchItemHandleadd(IndependentObject object, PropertyFilter filter)Adds an object reference to the batch to be retrieved by this instance.static RetrievingBatchcreateRetrievingBatchInstance(Domain domain)Creates a newRetrievingBatchinstance for the specified FileNet P8 domain.booleanhasExceptions()Indicates whether any of the batch items have an associated exception as a result of the batch retrieval operation.voidretrieveBatch()Retrieve all of the objects referenced in this batch.-
Methods inherited from class com.filenet.api.core.Batch
getBatchItemHandles
-
-
-
-
Method Detail
-
createRetrievingBatchInstance
public static RetrievingBatch createRetrievingBatchInstance(Domain domain)
Creates a newRetrievingBatchinstance for the specified FileNet P8 domain.- Parameters:
domain- ADomainobject representing the FileNet P8 domain to use as the scope of thisRetrievingBatchinstance.- Returns:
- The
RetrievingBatchobject created.
-
add
public BatchItemHandle add(IndependentObject object, PropertyFilter filter)
Adds an object reference to the batch to be retrieved by this instance. The object is referenced by aBatchItemHandleinstance, and the batch contains a list ofBatchItemHandleinstances.- Parameters:
object- AnIndependentObjectinstance for the object to add.filter- APropertyFilterobject that represents information for controlling which property values (and with what level of detail and recursion) to return. Ifnull, this method returns values for all non-object properties and returns placeholders for all object-valued properties (PropertyEngineObjectproperties with a state ofPropertyState.UNEVALUATEDorPropertyState.REFERENCE); any subsequent attempts to access an object-valued property will cause an automatic round-trip to the server to fetch its value.- Returns:
- A
BatchItemHandleinstance representing the object added to the batch.
-
hasExceptions
public boolean hasExceptions()
Indicates whether any of the batch items have an associated exception as a result of the batch retrieval operation.- Returns:
- A
booleanvalue of true if there is an exception associated with any batch item; false otherwise.
-
retrieveBatch
public void retrieveBatch()
Retrieve all of the objects referenced in this batch. Calling this method executes the pending batch retrieval operation.- Throws:
EngineRuntimeException- Thrown when there are no pending items in the batch.
-
-