Class UniqueValidator

java.lang.Object
org.dellroad.stuff.validation.AbstractValidator<Unique,Object>
org.dellroad.stuff.validation.UniqueValidator
All Implemented Interfaces:
jakarta.validation.ConstraintValidator<Unique,Object>

public class UniqueValidator extends AbstractValidator<Unique,Object>
Validator for the @Unique constraint.
See Also:
  • Constructor Details

    • UniqueValidator

      public UniqueValidator()
  • Method Details

    • initialize

      public void initialize(Unique annotation)
      Specified by:
      initialize in interface jakarta.validation.ConstraintValidator<Unique,Object>
      Overrides:
      initialize in class AbstractValidator<Unique,Object>
    • isValid

      public boolean isValid(Object propertyValue, jakarta.validation.ConstraintValidatorContext context)