Class DiffContext

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

public class DiffContext extends Object
A context made available to schema differencing and validation operations. It supplies information about the database dialect that should be used when validating database properties and the Results object that should be populated with schema differences and validation errors.
Author:
Matt Ward
  • Constructor Details

    • DiffContext

      public DiffContext(Dialect dialect, Results results, Schema referenceSchema, Schema targetSchema)
      Constructor.
      Parameters:
      dialect - Dialect
      results - Results
      referenceSchema - Schema
      targetSchema - Schema
    • DiffContext

      public DiffContext(Dialect dialect, Schema referenceSchema, Schema targetSchema)
      Constructor.
      Parameters:
      dialect - Dialect
      referenceSchema - Schema
      targetSchema - Schema
  • Method Details

    • getDialect

      public Dialect getDialect()
      Returns:
      the dialect
    • getComparisonResults

      public Results getComparisonResults()
      Returns:
      the results of schema comparison: validation failures, differences etc.
    • getReferenceSchema

      public Schema getReferenceSchema()
      Returns:
      the referenceSchema
    • getTargetSchema

      public Schema getTargetSchema()
      Returns:
      the targetSchema