Class SchemaVersionValidator

  • All Implemented Interfaces:
    DbValidator

    public class SchemaVersionValidator
    extends AbstractDbValidator
    Validate a schema's version number with respect to a reference schema.

    For the target schema to pass validation its version number must be greater than or equal to the reference schema's version number.

    Author:
    Matt Ward
    • Constructor Detail

      • SchemaVersionValidator

        public SchemaVersionValidator()
    • Method Detail

      • validate

        public void validate​(DbObject referenceObj,
                             DbObject targetObj,
                             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.
        Parameters:
        referenceObj - DbObject
        targetObj - DbObject
        ctx - DiffContext