Evaluates Constraints for a GORM entity
Type | Name and description |
---|---|
java.lang.String |
PROPERTY_NAME The name of the constraints property |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Map<java.lang.String, ConstrainedProperty> |
evaluate(java.lang.Class cls) Evaluate constraints for the given class |
|
java.util.Map<java.lang.String, ConstrainedProperty> |
evaluate(java.lang.Class cls, boolean defaultNullable) Evaluate constraints for the given class |
|
java.util.Map<java.lang.String, ConstrainedProperty> |
evaluate(java.lang.Class<?> cls, boolean defaultNullable, boolean useOnlyAdHocConstraints, groovy.lang.Closure... adHocConstraintsClosures) Evaluate constraints for the given class |
|
java.util.Map<java.lang.String, java.lang.Object> |
getDefaultConstraints() The default constraints to use |
|
ConstrainedPropertyBuilder |
newConstrainedPropertyBuilder(java.lang.Class<?> theClass) Obtains a new builder from this evaluator |
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