Class SchemaComparator

java.lang.Object
org.alfresco.util.schemacomp.SchemaComparator

public class SchemaComparator extends 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
  • Field Details

  • Constructor Details

    • 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 Details

    • validateAndCompare

      public void validateAndCompare()
    • getComparisonResults

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