public static class BulkPersistenceResponse.PersistenceFailure<F> extends Object
Constructor and Description |
---|
PersistenceFailure() |
Modifier and Type | Method and 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()
If
type was BulkPersistenceResponse.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)
If
type was BulkPersistenceResponse.PersistenceFailureType.VALIDATION , this object should
contain the errors that the entity encountered. |
String |
toString() |
public F getFailedEntity()
public String getType()
@Nullable public org.springframework.validation.Errors getValidationErrors()
type
was BulkPersistenceResponse.PersistenceFailureType.VALIDATION
, this object should
contain the errors that the entity encountered.public BulkPersistenceResponse.PersistenceFailure<F> setFailedEntity(F failedEntity)
this
.public BulkPersistenceResponse.PersistenceFailure<F> setType(String type)
this
.BulkPersistenceResponse.PersistenceFailureType
public BulkPersistenceResponse.PersistenceFailure<F> setValidationErrors(@Nullable org.springframework.validation.Errors validationErrors)
type
was BulkPersistenceResponse.PersistenceFailureType.VALIDATION
, this object should
contain the errors that the entity encountered.this
.protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.