org.alfresco.util.schemacomp
Class DiffContext

java.lang.Object
  extended by org.alfresco.util.schemacomp.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.


Constructor Summary
DiffContext(org.hibernate.dialect.Dialect dialect, Results results, Schema referenceSchema, Schema targetSchema)
          Constructor.
DiffContext(org.hibernate.dialect.Dialect dialect, Schema referenceSchema, Schema targetSchema)
          Constructor.
 
Method Summary
 Results getComparisonResults()
           
 org.hibernate.dialect.Dialect getDialect()
           
 Schema getReferenceSchema()
           
 Schema getTargetSchema()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffContext

public DiffContext(org.hibernate.dialect.Dialect dialect,
                   Results results,
                   Schema referenceSchema,
                   Schema targetSchema)
Constructor.

Parameters:
dialect -
results -
referenceSchema -
targetSchema -

DiffContext

public DiffContext(org.hibernate.dialect.Dialect dialect,
                   Schema referenceSchema,
                   Schema targetSchema)
Constructor.

Parameters:
dialect -
referenceSchema -
targetSchema -
Method Detail

getDialect

public org.hibernate.dialect.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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.