Class BulkPersistenceResponse<P>
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<P>
-
public class BulkPersistenceResponse<P> extends Object
A response returned byCrudEntityService/CrudEntityHelperfor 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 classBulkPersistenceResponse.PersistenceFailure<F>static classBulkPersistenceResponse.PersistenceFailureType
-
Constructor Summary
Constructors Constructor Description BulkPersistenceResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)List<BulkPersistenceResponse.PersistenceFailure<P>>getFailures()All failures that occurred.List<P>getSuccessfullyPersisted()All entities that were successfully persisted.inthashCode()voidsetFailures(List<BulkPersistenceResponse.PersistenceFailure<P>> failures)All failures that occurred.voidsetSuccessfullyPersisted(List<P> successfullyPersisted)All entities that were successfully persisted.StringtoString()
-
-
-
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)
-
-