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.
Error
,
Result
,
BatchElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final java.lang.String CLASS_VERSION
boolean isBatchFailed()
java.util.List getErrors()
java.util.List getResults()
int getNumElements()
java.util.List getBatchElements()