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 boolean
canEqual(Object other)
boolean
equals(Object o)
F
getFailedEntity()
The entity which failed to persist.String
getType()
The type of failure that this entity encountered.org.springframework.validation.Errors
getValidationErrors()
Iftype
wasBulkPersistenceResponse.PersistenceFailureType.VALIDATION
, this object should contain the errors that the entity encountered.int
hashCode()
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)
Iftype
wasBulkPersistenceResponse.PersistenceFailureType.VALIDATION
, this object should contain the errors that the entity encountered.String
toString()
-
-
-
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()
Iftype
wasBulkPersistenceResponse.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)
Iftype
wasBulkPersistenceResponse.PersistenceFailureType.VALIDATION
, this object should contain the errors that the entity encountered.- Returns:
this
.
-
canEqual
protected boolean canEqual(Object other)
-
-