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 classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAll failures that occurred.All entities that were successfully persisted.All entities that were ignored because no changes were found during update.inthashCode()voidsetFailures(List<BulkPersistenceResponse.PersistenceFailure<P>> failures) All failures that occurred.voidsetSuccessfullyPersisted(List<P> successfullyPersisted) All entities that were successfully persisted.voidsetSuccessWithNoChanges(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
-