Class BulkPersistenceResponse<P>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<P>
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)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
All failures that occurred.All entities that were successfully persisted.All entities that were ignored because no changes were found during update.int
hashCode()
void
setFailures
(List<BulkPersistenceResponse.PersistenceFailure<P>> failures) All failures that occurred.void
setSuccessfullyPersisted
(List<P> successfullyPersisted) All entities that were successfully persisted.void
setSuccessWithNoChanges
(List<P> successWithNoChanges) All entities that were ignored because no changes were found during update.toString()
-
Constructor Details
-
BulkPersistenceResponse
public BulkPersistenceResponse()
-
-
Method Details
-
getSuccessfullyPersisted
All entities that were successfully persisted. -
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
All entities that were successfully persisted. -
setSuccessWithNoChanges
All entities that were ignored because no changes were found during update. Expected to happen in import case. -
setFailures
All failures that occurred. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-