Class BulkPersistenceResponse<P>

java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<P>

public class BulkPersistenceResponse<P> extends Object
A response returned by CrudEntityService/CrudEntityHelper for operations that involve persistence of multiple items at once. This response will contain information about which entities succeeded, and which entities failed and why.
Author:
Samarth Dhruva (samarthd)
  • Constructor Details

    • BulkPersistenceResponse

      public BulkPersistenceResponse()
  • Method Details

    • getSuccessfullyPersisted

      public List<P> getSuccessfullyPersisted()
      All entities that were successfully persisted.
    • getSuccessWithNoChanges

      public List<P> getSuccessWithNoChanges()
      All entities that were ignored because no changes were found during update. Expected to happen in import case.
    • getFailures

      All failures that occurred.
    • setSuccessfullyPersisted

      public void setSuccessfullyPersisted(List<P> successfullyPersisted)
      All entities that were successfully persisted.
    • setSuccessWithNoChanges

      public void setSuccessWithNoChanges(List<P> successWithNoChanges)
      All entities that were ignored because no changes were found during update. Expected to happen in import case.
    • setFailures

      public void setFailures(List<BulkPersistenceResponse.PersistenceFailure<P>> failures)
      All failures that occurred.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object