public class DefaultConstraintEvaluator extends java.lang.Object
Evaluates constraints for entities
Modifiers | Name | Description |
---|---|---|
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, ConstrainedProperty cp, java.util.Map<java.lang.String, java.lang.Object> defaultConstraints) |
|
protected void |
applyDefaultNullableConstraint(PersistentProperty p, ConstrainedProperty cp) |
|
protected void |
applyDefaultNullableConstraint(ConstrainedProperty cp, boolean defaultNullable) |
|
protected void |
applyMapOfConstraints(java.util.Map<java.lang.String, java.lang.Object> constraints, java.lang.String propertyName, PersistentProperty persistentProperty, ConstrainedProperty cp) |
|
protected void |
applySharedConstraints(ConstrainedPropertyBuilder constrainedPropertyBuilder, java.util.Map<java.lang.String, ConstrainedProperty> constrainedProperties) |
|
protected boolean |
canApplyNullableConstraint(java.lang.String propertyName, PersistentProperty property, Constrained constrained) |
|
protected boolean |
canPropertyBeConstrained(PersistentProperty property) |
|
java.util.Map<java.lang.String, ConstrainedProperty> |
evaluate(java.lang.Class cls) |
|
java.util.Map<java.lang.String, ConstrainedProperty> |
evaluate(java.lang.Class theClass, boolean defaultNullable) |
|
java.util.Map<java.lang.String, ConstrainedProperty> |
evaluate(java.lang.Class<?> theClass, boolean defaultNullable, boolean useOnlyAdHocConstraints, groovy.lang.Closure... adHocConstraintsClosures) |
|
java.util.Map<java.lang.String, java.lang.Object> |
getDefaultConstraints() |
|
protected boolean |
isConstrainableProperty(PersistentProperty persistentProperty, java.lang.String propertyName) |
|
ConstrainedPropertyBuilder |
newConstrainedPropertyBuilder(java.lang.Class<?> theClass) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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() |