Class IndexColumnsValidator
java.lang.Object
org.alfresco.util.schemacomp.validator.NameValidator
org.alfresco.util.schemacomp.validator.IndexColumnsValidator
- All Implemented Interfaces:
DbValidator
Validates columns names in a Index using a regular expression pattern.
- Author:
- pavel.yurkevich
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(DbObject reference, DbObject target, DiffContext ctx) Validate the target database object (against the reference object if necessary).booleanAsk whether the database object's validator is responsible for validating the specified field name.Methods inherited from class org.alfresco.util.schemacomp.validator.NameValidator
getPattern, getProperty, getPropertyNames, setPattern, setProperty, validatesFullObject
-
Constructor Details
-
IndexColumnsValidator
public IndexColumnsValidator()
-
-
Method Details
-
validate
Description copied from interface:DbValidatorValidate the target database object (against the reference object if necessary). Store the validation results on the DiffContext.- Specified by:
validatein interfaceDbValidator- Overrides:
validatein classNameValidator- Parameters:
reference- DbObjecttarget- DbObjectctx- DiffContext
-
validates
Description copied from interface:DbValidatorAsk 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:
validatesin interfaceDbValidator- Overrides:
validatesin classNameValidator- Parameters:
fieldName- String- Returns:
- boolean
-