Class TypeNameOnlyValidator

  • All Implemented Interfaces:
    DbValidator

    public class TypeNameOnlyValidator
    extends NameValidator
    Validates columns types without column size.
    Author:
    sergei.shcherbovich
    • Constructor Detail

      • TypeNameOnlyValidator

        public TypeNameOnlyValidator()
    • 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
      • validatesFullObject

        public boolean validatesFullObject()
        Description copied from interface: DbValidator
        Asks 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:
        validatesFullObject in interface DbValidator
        Overrides:
        validatesFullObject in class NameValidator
        Returns:
        true if missing or unexpected database objects should not be reported by differencing logic.