Methods used for validating GORM instances.
- the entity/domain classFields inherited from class | Fields |
---|---|
class AbstractGormApi |
persistentClass, persistentEntity |
class AbstractDatastoreApi |
datastore |
Type | Name and description |
---|---|
BeforeValidateHelper |
beforeValidateHelper |
org.springframework.validation.Validator |
validator |
Constructor and description |
---|
GormValidationApi
(java.lang.Class<D> persistentClass, Datastore datastore) |
Type | Name and description |
---|---|
void |
clearErrors(D instance) Clears any errors that exist on an instance |
org.springframework.validation.Errors |
getErrors(D instance) Obtains the errors for an instance |
boolean |
hasErrors(D instance) Tests whether an instance has any errors |
void |
setErrors(D instance, org.springframework.validation.Errors errors) Sets the errors for an instance |
boolean |
validate(D instance, java.util.Map arguments) Validates an instance for the given arguments |
boolean |
validate(D instance, java.util.List fields) Validates an instance |
boolean |
validate(D instance) Validates an instance |
boolean |
validate(D instance, boolean evict) Validates an instance. |
Methods inherited from class | Name |
---|---|
class AbstractGormApi |
getExtendedMethods, getMethods |
class AbstractDatastoreApi |
execute, execute |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Clears any errors that exist on an instance
instance
- The instanceObtains the errors for an instance
instance
- The instance to obtain errors forTests whether an instance has any errors
instance
- The instanceSets the errors for an instance
instance
- The instanceerrors
- The errorsValidates an instance for the given arguments
instance
- The instance to validatearguments
- The arguments to useValidates an instance
instance
- The instance to validatefields
- The list of fields to validateValidates an instance
instance
- The instance to validateValidates an instance. Note: This signature is purely here for compatibility the evict parameter does nothing and the method should be regarded as deprecated
instance
- The instance to validate