Class SchemaComparator


  • public class SchemaComparator
    extends java.lang.Object
    Compares two abstract database schemas, a reference schema and a target schema (the schema to check for validity). The reference schema is the primary schema and all objects in the right schema are judged relative to it.
    Author:
    Matt Ward
    • Constructor Detail

      • SchemaComparator

        public SchemaComparator​(Schema referenceSchema,
                                Schema targetSchema,
                                Dialect dialect)
        Construct a comparator to compare a target schema against a reference schema. Validators supplied by the reference schema will be used to validate the target schema.
        Parameters:
        referenceSchema - Schema
        targetSchema - Schema
        dialect - Dialect
    • Method Detail

      • validateAndCompare

        public void validateAndCompare()
      • getComparisonResults

        public Results getComparisonResults()
        Returns:
        the schema comparison results.