Class BulkPersistenceResponse<P>
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<P>
-
public class BulkPersistenceResponse<P> extends Object
A response returned byCrudEntityService
/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 Classes Modifier and Type Class Description static class
BulkPersistenceResponse.PersistenceFailure<F>
static class
BulkPersistenceResponse.PersistenceFailureType
-
Constructor Summary
Constructors Constructor Description BulkPersistenceResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
List<BulkPersistenceResponse.PersistenceFailure<P>>
getFailures()
All failures that occurred.List<P>
getSuccessfullyPersisted()
All entities that were successfully persisted.int
hashCode()
void
setFailures(List<BulkPersistenceResponse.PersistenceFailure<P>> failures)
All failures that occurred.void
setSuccessfullyPersisted(List<P> successfullyPersisted)
All entities that were successfully persisted.String
toString()
-
-
-
Method Detail
-
getSuccessfullyPersisted
public List<P> getSuccessfullyPersisted()
All entities that were successfully persisted.
-
getFailures
public List<BulkPersistenceResponse.PersistenceFailure<P>> getFailures()
All failures that occurred.
-
setSuccessfullyPersisted
public void setSuccessfullyPersisted(List<P> successfullyPersisted)
All entities that were successfully persisted.
-
setFailures
public void setFailures(List<BulkPersistenceResponse.PersistenceFailure<P>> failures)
All failures that occurred.
-
canEqual
protected boolean canEqual(Object other)
-
-