org.codehaus.groovy.grails.orm.hibernate.validation
Class AbstractPersistentConstraint
java.lang.Object
org.codehaus.groovy.grails.validation.AbstractConstraint
org.codehaus.groovy.grails.orm.hibernate.validation.AbstractPersistentConstraint
- All Implemented Interfaces:
- PersistentConstraint, Constraint
- Direct Known Subclasses:
- UniqueConstraint
abstract class AbstractPersistentConstraint
- extends AbstractConstraint
- implements PersistentConstraint
Class description here.
- Since:
- 0.4
Created: Jan 23, 2007
Time: 1:58:21 PM
- Author:
- Graeme Rocher
| Methods inherited from class org.codehaus.groovy.grails.validation.AbstractConstraint |
getDefaultMessage, getPropertyName, processValidate, rejectValue, rejectValue, rejectValue, rejectValue, rejectValue, rejectValueWithDefaultMessage, setMessageSource, setOwningClass, setParameter, setPropertyName, skipEmptyStrings, skipNullValues, toString |
constraintHibernateTemplate
protected HibernateTemplate constraintHibernateTemplate
AbstractPersistentConstraint
AbstractPersistentConstraint()
setHibernateTemplate
public void setHibernateTemplate(HibernateTemplate template)
- Description copied from interface:
PersistentConstraint
- Sets the hibernate template to use for the persistent constraint
- Specified by:
setHibernateTemplate in interface PersistentConstraint
validate
public void validate(Object target,
Object propertyValue,
Errors errors)
- Description copied from interface:
Constraint
- Validate this constraint against a property value
- Specified by:
validate in interface Constraint- Overrides:
validate in class AbstractConstraint
propertyValue - The property value to validateerrors - The errors instance to record errors against
Copyright (c) 2005-2006 The Grails project