Class BulkPersistenceResponse.PersistenceFailure<F>
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse.PersistenceFailure<F>
-
- Enclosing class:
- BulkPersistenceResponse<P>
public static class BulkPersistenceResponse.PersistenceFailure<F> extends Object
-
-
Constructor Summary
Constructors Constructor Description PersistenceFailure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)FgetFailedEntity()The entity which failed to persist.StringgetType()The type of failure that this entity encountered.org.springframework.validation.ErrorsgetValidationErrors()IftypewasBulkPersistenceResponse.PersistenceFailureType.VALIDATION, this object should contain the errors that the entity encountered.inthashCode()BulkPersistenceResponse.PersistenceFailure<F>setFailedEntity(F failedEntity)The entity which failed to persist.BulkPersistenceResponse.PersistenceFailure<F>setType(String type)The type of failure that this entity encountered.BulkPersistenceResponse.PersistenceFailure<F>setValidationErrors(org.springframework.validation.Errors validationErrors)IftypewasBulkPersistenceResponse.PersistenceFailureType.VALIDATION, this object should contain the errors that the entity encountered.StringtoString()
-
-
-
Method Detail
-
getFailedEntity
public F getFailedEntity()
The entity which failed to persist.
-
getType
public String getType()
The type of failure that this entity encountered.
-
getValidationErrors
@Nullable public org.springframework.validation.Errors getValidationErrors()
IftypewasBulkPersistenceResponse.PersistenceFailureType.VALIDATION, this object should contain the errors that the entity encountered.
-
setFailedEntity
public BulkPersistenceResponse.PersistenceFailure<F> setFailedEntity(F failedEntity)
The entity which failed to persist.- Returns:
this.
-
setType
public BulkPersistenceResponse.PersistenceFailure<F> setType(String type)
The type of failure that this entity encountered.- Returns:
this.- See Also:
BulkPersistenceResponse.PersistenceFailureType
-
setValidationErrors
public BulkPersistenceResponse.PersistenceFailure<F> setValidationErrors(@Nullable org.springframework.validation.Errors validationErrors)
IftypewasBulkPersistenceResponse.PersistenceFailureType.VALIDATION, this object should contain the errors that the entity encountered.- Returns:
this.
-
canEqual
protected boolean canEqual(Object other)
-
-