@CompileStatic abstract class AbstractHibernateGormValidationApi<D> extends GormValidationApi<D>
| Modifiers | Name | Description |
|---|---|---|
static String |
ARGUMENT_DEEP_VALIDATE |
|
protected ClassLoader |
classLoader |
|
protected AbstractHibernateDatastore |
datastore |
|
protected IHibernateTemplate |
hibernateTemplate |
| Constructor and description |
|---|
protected AbstractHibernateGormValidationApi(Class<D> persistentClass, AbstractHibernateDatastore datastore, ClassLoader classLoader) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract Object |
applyManualFlush(Session session) |
|
abstract Object |
readPreviousFlushMode(Session session) |
|
abstract void |
restoreFlushMode(Session session, Object previousFlushMode) |
|
protected Errors |
setupErrorsProperty(Object target)Initializes the Errors property on target. |
|
boolean |
validate(D instance, Map arguments) |
|
boolean |
validate(D instance, List validatedFieldsList, Map arguments) |
Initializes the Errors property on target. The target will be assigned a new Errors property. If the target contains any binding errors, those binding errors will be copied in to the new Errors property.
target - object to initialize