Class TypeNameOnlyValidator
java.lang.Object
org.alfresco.util.schemacomp.validator.NameValidator
org.alfresco.util.schemacomp.validator.TypeNameOnlyValidator
- All Implemented Interfaces:
DbValidator
Validates columns types without column size.
- Author:
- sergei.shcherbovich
-
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).booleanAsks whether the database object's validator is responsible for validating the entire DbObject.Methods inherited from class org.alfresco.util.schemacomp.validator.NameValidator
getPattern, getProperty, getPropertyNames, setPattern, setProperty, validates
-
Constructor Details
-
TypeNameOnlyValidator
public TypeNameOnlyValidator()
-
-
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
-
validatesFullObject
public boolean validatesFullObject()Description copied from interface:DbValidatorAsks whether the database object's validator is responsible for validating the entire DbObject. If true, then differences are not reported (e.g. table missing from database) as it is the validator's role to worry about presence. If validation and differences are required then report false - even if the validator works at the full object (rather than property) level.- Specified by:
validatesFullObjectin interfaceDbValidator- Overrides:
validatesFullObjectin classNameValidator- Returns:
- true if missing or unexpected database objects should not be reported by differencing logic.
-