Class BatchProcessResponse

java.lang.Object
com.broadleafcommerce.bulk.service.BatchProcessResponse

public final class BatchProcessResponse extends Object
A response returned by BulkUpdateProcessor.modifyAndPersist(List, BulkUpdate) indicating the results of processing a batch of records in an update.
Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • BatchProcessResponse

      public BatchProcessResponse(boolean successful, List<BulkUpdateError> errors)
  • Method Details

    • isSuccessful

      public boolean isSuccessful()
      True if the batch was processed successfully, false otherwise.
    • getErrors

      public List<BulkUpdateError> getErrors()
      If successful is false, then this should contain all of the errors encountered when processing the batch. These will be used by BulkUpdateManager and set on the corresponding BulkUpdate.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object