|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.validation.AbstractConstraint org.codehaus.groovy.grails.orm.hibernate.validation.AbstractPersistentConstraint
public abstract class AbstractPersistentConstraint extends AbstractConstraint
Constraints that require access to the HibernateTemplate should subclass this class.
Field Summary | |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext
|
static java.lang.ThreadLocal |
sessionFactory
|
Fields inherited from class AbstractConstraint | |
---|---|
classShortName, constraintOwningClass, constraintParameter, constraintPropertyName, messageSource |
Method Summary | |
---|---|
org.springframework.orm.hibernate3.HibernateTemplate
|
getHibernateTemplate()
|
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; |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Field Detail |
---|
protected org.springframework.context.ApplicationContext applicationContext
public static java.lang.ThreadLocal sessionFactory
Method Detail |
---|
public org.springframework.orm.hibernate3.HibernateTemplate getHibernateTemplate()
@Override public boolean isValid()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
public boolean supports(java.lang.Class type)
type
- The type to support
Groovy Documentation