org.alfresco.util.schemacomp
Class SchemaComparator
java.lang.Object
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.
|
Constructor Summary |
SchemaComparator(Schema referenceSchema,
Schema targetSchema,
org.hibernate.dialect.Dialect dialect)
Construct a comparator to compare a target schema against a reference schema. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 -
validateAndCompare
public void validateAndCompare()
getComparisonResults
public Results getComparisonResults()
- Returns:
- the schema comparison results.
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.