A trait that adds GORM validation behavior to any class
| Type | Name and description |
|---|---|
org.springframework.validation.Errors |
errorsThe validation errors object |
| Type | Name and description |
|---|---|
void |
clearErrors()Clears any errors that exist on an instance |
static GormValidationApi |
currentGormValidationApi()Used to obtain the GormValidationApi instance. |
org.springframework.validation.Errors |
getErrors()Obtains the errors for an instance |
java.lang.Boolean |
hasErrors()Tests whether an instance has any errors |
static void |
initInternalValidationApi(GormValidationApi gvi)Used to initialise the state of GORM. |
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
Used to obtain the GormValidationApi instance. This method is used internally by the framework and SHOULD NOT be called by the developer
Obtains the errors for an instance
Tests whether an instance has any errors
Used to initialise the state of GORM. This method is used internally by the framework and SHOULD NOT be called by the developer
Validates an instance for the given arguments
arguments - The arguments to useValidates an instance
fields - The list of fields to validateValidates an instance