public abstract class AbstractPersistentConstraint extends org.codehaus.groovy.grails.validation.AbstractConstraint implements PersistentConstraint
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
static java.lang.ThreadLocal<org.hibernate.SessionFactory> |
sessionFactory |
| Constructor and Description |
|---|
AbstractPersistentConstraint() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.orm.hibernate3.HibernateTemplate |
getHibernateTemplate()
Obtains the HibernateTemplate.
|
boolean |
isValid()
Return whether the constraint is valid for the owning class
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
boolean |
supports(java.lang.Class type)
Returns whether the constraint supports being applied against the specified type;
|
checkState, getDefaultMessage, getParameter, getPropertyName, processValidate, rejectValue, rejectValue, rejectValue, rejectValue, rejectValue, rejectValueWithDefaultMessage, setMessageSource, setOwningClass, setParameter, setPropertyName, skipBlankValues, skipNullValues, toString, validatepublic static java.lang.ThreadLocal<org.hibernate.SessionFactory> sessionFactory
protected org.springframework.context.ApplicationContext applicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic org.springframework.orm.hibernate3.HibernateTemplate getHibernateTemplate()
PersistentConstraintgetHibernateTemplate in interface PersistentConstraintpublic boolean supports(java.lang.Class type)
supports in interface org.codehaus.groovy.grails.validation.Constrainttype - The type to supportpublic boolean isValid()
isValid in interface org.codehaus.groovy.grails.validation.ConstraintisValid in class org.codehaus.groovy.grails.validation.AbstractConstraint