Package org.alfresco.util.schemacomp
Class SchemaComparator
java.lang.Object
org.alfresco.util.schemacomp.SchemaComparator
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.
- Author:
- Matt Ward
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchemaComparator(Schema referenceSchema, Schema targetSchema, Dialect dialect) Construct a comparator to compare a target schema against a reference schema. -
Method Summary
-
Field Details
-
CHAR_SET
- See Also:
-
LINE_SEPARATOR
- See Also:
-
-
Constructor Details
-
SchemaComparator
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- SchematargetSchema- Schemadialect- Dialect
-
-
Method Details
-
validateAndCompare
public void validateAndCompare() -
getComparisonResults
- Returns:
- the schema comparison results.
-