atg.repository.loader
Interface Batch


public interface Batch

A Batch represents a transactional unit of work performed by a Job. It contains lists of Errors and, if the Job was configured to record them, Results.

See Also:
Error, Result, BatchElement

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Method Summary
 java.util.List getBatchElements()
          Returns a List of BatchElement objects (Errors and Results) in the Batch or null if the Batch is empty.
 java.util.List getErrors()
          Returns a List of the Errors that occurred in the Batch or null if there were no Errors.
 int getNumElements()
          Returns the number of BatchElement objects (Errors and Results) in the Batch.
 java.util.List getResults()
          Returns a List of Results or null if there were no Results.
 boolean isBatchFailed()
          Returns the state of the transaction with which this Batch completed.
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Method Detail

isBatchFailed

boolean isBatchFailed()
Returns the state of the transaction with which this Batch completed. True if the transaction rolled back, false if it was committed.


getErrors

java.util.List getErrors()
Returns a List of the Errors that occurred in the Batch or null if there were no Errors.


getResults

java.util.List getResults()
Returns a List of Results or null if there were no Results.


getNumElements

int getNumElements()
Returns the number of BatchElement objects (Errors and Results) in the Batch.


getBatchElements

java.util.List getBatchElements()
Returns a List of BatchElement objects (Errors and Results) in the Batch or null if the Batch is empty.