@groovy.transform.CompileStatic class UniqueConstraint extends AbstractConstraint
A constraint that validates for the presence of an existing object (uniqueness)
| Fields inherited from class | Fields |
|---|---|
class AbstractConstraint |
classShortName, constraintOwningClass, constraintParameter, constraintPropertyName, messageSource |
| Constructor and description |
|---|
UniqueConstraint(java.lang.Class<?> constraintOwningClass, java.lang.String constraintPropertyName, java.lang.Object constraintParameter, MessageSource messageSource) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getName() |
|
protected void |
processValidate(java.lang.Object target, java.lang.Object propertyValue, Errors errors) |
|
boolean |
supports(java.lang.Class type) |
|
protected java.lang.Object |
validateParameter(java.lang.Object constraintParameter) |
| Methods inherited from class | Name |
|---|---|
class AbstractConstraint |
checkState, getDefaultMessage, getParameter, getPropertyName, isValid, processValidate, rejectValue, rejectValue, rejectValue, rejectValue, rejectValue, rejectValueWithDefaultMessage, skipBlankValues, skipNullValues, toString, validate, validateParameter |