Class DiffContext


  • public class DiffContext
    extends java.lang.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 Detail

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

      • 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