A trait that adds GORM validation behavior to any class
| Type | Name and description |
|---|---|
org.springframework.validation.Errors |
errorsThe validation errors object |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
clearErrors()Clears any errors that exist on an instance |
|
org.springframework.validation.Errors |
getErrors()Obtains the errors for an instance |
|
java.lang.Boolean |
hasErrors()Tests whether an instance has any errors |
|
boolean |
shouldSkipValidation()@return Whether this instance should skip validation |
|
void |
skipValidation(boolean shouldSkip)Marks this instance to skip validation |
|
boolean |
validate(java.util.Map arguments)Validates an instance for the given arguments |
|
boolean |
validate(java.util.List fields)Validates an instance |
|
boolean |
validate()Validates an instance |
Clears any errors that exist on an instance
Obtains the errors for an instance
Tests whether an instance has any errors
Marks this instance to skip validation
shouldSkip - True if validation should be skippedValidates an instance for the given arguments
arguments - The arguments to useValidates an instance
fields - The list of fields to validateValidates an instance