Class TypeNameOnlyValidator
- java.lang.Object
-
- org.alfresco.util.schemacomp.validator.NameValidator
-
- org.alfresco.util.schemacomp.validator.TypeNameOnlyValidator
-
- All Implemented Interfaces:
DbValidator
public class TypeNameOnlyValidator extends NameValidator
Validates columns types without column size.- Author:
- sergei.shcherbovich
-
-
Constructor Summary
Constructors Constructor Description TypeNameOnlyValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(DbObject reference, DbObject target, DiffContext ctx)Validate the target database object (against the reference object if necessary).booleanvalidatesFullObject()Asks 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
-
-
-
-
Method Detail
-
validate
public void validate(DbObject reference, DbObject target, DiffContext ctx)
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.
-
-