Class BulkPersistenceResponse.PersistenceFailure<F>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse.PersistenceFailure<F>
- Enclosing class:
- BulkPersistenceResponse<P>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The entity which failed to persist.getType()
The type of failure that this entity encountered.org.springframework.validation.Errors
Iftype
wasBulkPersistenceResponse.PersistenceFailureType.VALIDATION
, this object should contain the errors that the entity encountered.int
hashCode()
setFailedEntity
(F failedEntity) The entity which failed to persist.The type of failure that this entity encountered.setValidationErrors
(org.springframework.validation.Errors validationErrors) Iftype
wasBulkPersistenceResponse.PersistenceFailureType.VALIDATION
, this object should contain the errors that the entity encountered.toString()
-
Constructor Details
-
PersistenceFailure
public PersistenceFailure()
-
-
Method Details
-
getFailedEntity
The entity which failed to persist. -
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
The entity which failed to persist.- Returns:
this
.
-
setType
The type of failure that this entity encountered.- Returns:
this
.- See Also:
-
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
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-