interface ConstraintsEvaluator
Evaluates Constraints for a GORM entity
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
PROPERTY_NAME |
The name of the constraints property |
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> |
evaluate(java.lang.Class cls) Evaluate constraints for the given class |
|
abstract java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> |
evaluate(java.lang.Class cls, boolean defaultNullable) Evaluate constraints for the given class |
|
abstract java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> |
evaluate(java.lang.Class<?> cls, boolean defaultNullable, boolean useOnlyAdHocConstraints, groovy.lang.Closure[] adHocConstraintsClosures) Evaluate constraints for the given class |
|
abstract java.util.Map<java.lang.String, java.lang.Object> |
getDefaultConstraints() The default constraints to use |
|
abstract ConstrainedPropertyBuilder |
newConstrainedPropertyBuilder(java.lang.Class<?> theClass) Obtains a new builder from this evaluator |
The name of the constraints property
Evaluate constraints for the given class
cls
- The class to evaluate constraints forEvaluate constraints for the given class
cls
- The class to evaluate constraints forEvaluate constraints for the given class
cls
- The class to evaluate constraints fordefaultNullable
- indicates if properties are nullable by defaultuseOnlyAdHocConstraints
- indicates if evaluating without pre-declared constraintsadHocConstraintsClosures
- ad-hoc constraints to evaluate forThe default constraints to use
Obtains a new builder from this evaluator
theClass
- The class