Package liquibase.diff.compare
Class DatabaseObjectComparatorFactory
java.lang.Object
liquibase.diff.compare.DatabaseObjectComparatorFactory
-
Method Summary
Modifier and TypeMethodDescriptionfindDifferences
(DatabaseObject object1, DatabaseObject object2, Database accordingTo, CompareControl compareControl) getComparator
(Class<? extends DatabaseObject> comparatorClass, Database database) protected List<DatabaseObjectComparator>
getComparators
(Class<? extends DatabaseObject> comparatorClass, Database database) Return singleton DatabaseObjectComparatorFactoryString[]
hash
(DatabaseObject databaseObject, CompareControl.SchemaComparison[] schemaComparisons, Database accordingTo) boolean
isSameObject
(DatabaseObject object1, DatabaseObject object2, CompareControl.SchemaComparison[] schemaComparisons, Database accordingTo) void
register
(DatabaseObjectComparator generator) static void
reset()
static void
resetAll()
void
unregister
(Class generatorClass) void
unregister
(DatabaseObjectComparator generator)
-
Method Details
-
getInstance
Return singleton DatabaseObjectComparatorFactory -
reset
public static void reset() -
resetAll
public static void resetAll() -
register
-
unregister
-
unregister
-
getComparator
public DatabaseObjectComparator getComparator(Class<? extends DatabaseObject> comparatorClass, Database database) -
getComparators
protected List<DatabaseObjectComparator> getComparators(Class<? extends DatabaseObject> comparatorClass, Database database) -
isSameObject
public boolean isSameObject(DatabaseObject object1, DatabaseObject object2, CompareControl.SchemaComparison[] schemaComparisons, Database accordingTo) -
hash
public String[] hash(DatabaseObject databaseObject, CompareControl.SchemaComparison[] schemaComparisons, Database accordingTo) -
findDifferences
public ObjectDifferences findDifferences(DatabaseObject object1, DatabaseObject object2, Database accordingTo, CompareControl compareControl)
-