public class DefaultConstraintEvaluator extends java.lang.Object implements ConstraintsEvaluator
Evaluates constraints for entities
Modifiers | Name | Description |
---|---|---|
private static org.slf4j.Logger |
LOG |
|
protected ConstraintRegistry |
constraintRegistry |
|
protected java.util.Map<java.lang.String, java.lang.Object> |
defaultConstraints |
|
protected MappingContext |
mappingContext |
Constructor and description |
---|
DefaultConstraintEvaluator
() |
DefaultConstraintEvaluator
(java.util.Map<java.lang.String, java.lang.Object> defaultConstraints) |
DefaultConstraintEvaluator
(org.springframework.context.MessageSource messageSource, MappingContext mappingContext) |
DefaultConstraintEvaluator
(org.springframework.context.MessageSource messageSource, MappingContext mappingContext, java.util.Map<java.lang.String, java.lang.Object> defaultConstraints) |
DefaultConstraintEvaluator
(org.springframework.context.MessageSource messageSource) |
DefaultConstraintEvaluator
(ConstraintRegistry constraintRegistry, MappingContext mappingContext, java.util.Map<java.lang.String, java.lang.Object> defaultConstraints) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
applyDefaultConstraints(java.lang.String propertyName, PersistentProperty persistentProperty, grails.gorm.validation.ConstrainedProperty cp, java.util.Map<java.lang.String, java.lang.Object> defaultConstraints) |
|
protected void |
applyDefaultNullableConstraint(PersistentProperty p, grails.gorm.validation.ConstrainedProperty cp) |
|
protected void |
applyDefaultNullableConstraint(grails.gorm.validation.ConstrainedProperty cp, boolean defaultNullable) |
|
protected void |
applyMapOfConstraints(java.util.Map<java.lang.String, java.lang.Object> constraints, java.lang.String propertyName, PersistentProperty persistentProperty, grails.gorm.validation.ConstrainedProperty cp) |
|
protected void |
applySharedConstraints(ConstrainedPropertyBuilder constrainedPropertyBuilder, java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> constrainedProperties) |
|
protected boolean |
canApplyNullableConstraint(java.lang.String propertyName, PersistentProperty property, Constrained constrained) |
|
protected boolean |
canPropertyBeConstrained(PersistentProperty property) |
|
public java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> |
evaluate(java.lang.Class cls) |
|
public java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> |
evaluate(java.lang.Class theClass, boolean defaultNullable) |
|
public java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> |
evaluate(java.lang.Class<?> theClass, boolean defaultNullable, boolean useOnlyAdHocConstraints, groovy.lang.Closure adHocConstraintsClosures) |
|
public java.util.Map<java.lang.String, java.lang.Object> |
getDefaultConstraints() |
|
protected boolean |
isConstrainableProperty(PersistentProperty persistentProperty, java.lang.String propertyName) |
|
public ConstrainedPropertyBuilder |
newConstrainedPropertyBuilder(java.lang.Class<?> theClass) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), 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() |