org.alfresco.util.schemacomp
Class SchemaComparator

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


Field Summary
static java.lang.String CHAR_SET
           
static java.lang.String LINE_SEPARATOR
           
 
Constructor Summary
SchemaComparator(Schema referenceSchema, Schema targetSchema, org.hibernate.dialect.Dialect dialect)
          Construct a comparator to compare a target schema against a reference schema.
 
Method Summary
 Results getComparisonResults()
           
 void validateAndCompare()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAR_SET

public static final java.lang.String CHAR_SET
See Also:
Constant Field Values

LINE_SEPARATOR

public static final java.lang.String LINE_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

SchemaComparator

public SchemaComparator(Schema referenceSchema,
                        Schema targetSchema,
                        org.hibernate.dialect.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 -
targetSchema -
Method Detail

validateAndCompare

public void validateAndCompare()

getComparisonResults

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


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