Class BatchProcessResponse
- java.lang.Object
-
- com.broadleafcommerce.bulk.service.BatchProcessResponse
-
public final class BatchProcessResponse extends Object
A response returned byBulkUpdateProcessor.modifyAndPersist(List, BulkUpdate)
indicating the results of processing a batch of records in an update.- Author:
- Samarth Dhruva (samarthd)
- See Also:
BulkUpdateProcessor.modifyAndPersist(List, BulkUpdate)
-
-
Constructor Summary
Constructors Constructor Description BatchProcessResponse(boolean successful, List<BulkUpdateError> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<BulkUpdateError>
getErrors()
Ifsuccessful
is false, then this should contain all of the errors encountered when processing the batch.int
hashCode()
boolean
isSuccessful()
True if the batch was processed successfully, false otherwise.String
toString()
-
-
-
Constructor Detail
-
BatchProcessResponse
public BatchProcessResponse(boolean successful, List<BulkUpdateError> errors)
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
True if the batch was processed successfully, false otherwise.
-
getErrors
public List<BulkUpdateError> getErrors()
Ifsuccessful
is false, then this should contain all of the errors encountered when processing the batch. These will be used byBulkUpdateManager
and set on the correspondingBulkUpdate
.
-
-