Package org.alfresco.util.schemacomp
Class SchemaComparator
- java.lang.Object
-
- org.alfresco.util.schemacomp.SchemaComparator
-
public class SchemaComparator extends java.lang.ObjectCompares 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 Modifier and Type Field Description static java.lang.StringCHAR_SETstatic java.lang.StringLINE_SEPARATOR
-
Constructor Summary
Constructors Constructor Description SchemaComparator(Schema referenceSchema, Schema targetSchema, Dialect dialect)Construct a comparator to compare a target schema against a reference schema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultsgetComparisonResults()voidvalidateAndCompare()
-
-
-
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, 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- SchematargetSchema- Schemadialect- Dialect
-
-
Method Detail
-
validateAndCompare
public void validateAndCompare()
-
getComparisonResults
public Results getComparisonResults()
- Returns:
- the schema comparison results.
-
-