Class IndexColumnsValidator

  • All Implemented Interfaces:
    DbValidator

    public class IndexColumnsValidator
    extends NameValidator
    Validates columns names in a Index using a regular expression pattern.
    Author:
    pavel.yurkevich
    • Constructor Detail

      • IndexColumnsValidator

        public IndexColumnsValidator()
    • Method Detail

      • validate

        public void validate​(DbObject reference,
                             DbObject target,
                             DiffContext ctx)
        Description copied from interface: DbValidator
        Validate the target database object (against the reference object if necessary). Store the validation results on the DiffContext.
        Specified by:
        validate in interface DbValidator
        Overrides:
        validate in class NameValidator
        Parameters:
        reference - DbObject
        target - DbObject
        ctx - DiffContext
      • validates

        public boolean validates​(java.lang.String fieldName)
        Description copied from interface: DbValidator
        Ask whether the database object's validator is responsible for validating the specified field name. This only applies to simple properties - not DbObject instances which should provide their own validators.
        Specified by:
        validates in interface DbValidator
        Overrides:
        validates in class NameValidator
        Parameters:
        fieldName - String
        Returns:
        boolean