@groovy.transform.CompileStatic abstract class AbstractHibernateGormValidationApi<D> extends GormValidationApi<D>
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
ARGUMENT_DEEP_VALIDATE |
|
protected java.lang.ClassLoader |
classLoader |
|
protected AbstractHibernateDatastore |
datastore |
|
protected IHibernateTemplate |
hibernateTemplate |
Constructor and description |
---|
protected AbstractHibernateGormValidationApi
(java.lang.Class<D> persistentClass, AbstractHibernateDatastore datastore, java.lang.ClassLoader classLoader) |
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.lang.Object |
applyManualFlush(org.hibernate.Session session) |
|
abstract java.lang.Object |
readPreviousFlushMode(org.hibernate.Session session) |
|
abstract void |
restoreFlushMode(org.hibernate.Session session, java.lang.Object previousFlushMode) |
|
protected org.springframework.validation.Errors |
setupErrorsProperty(java.lang.Object target) Initializes the Errors property on target. |
|
boolean |
validate(D instance, java.util.Map arguments) |
|
boolean |
validate(D instance, java.util.List validatedFieldsList, java.util.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