Class IndexColumnsValidator

java.lang.Object
org.alfresco.util.schemacomp.validator.NameValidator
org.alfresco.util.schemacomp.validator.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 Details

    • IndexColumnsValidator

      public IndexColumnsValidator()
  • Method Details

    • 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(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