Package liquibase.diff.compare.core
Class UniqueConstraintComparator
java.lang.Object
liquibase.diff.compare.core.UniqueConstraintComparator
- All Implemented Interfaces:
DatabaseObjectComparator
-
Field Summary
Fields inherited from interface liquibase.diff.compare.DatabaseObjectComparator
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE, PRIORITY_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindDifferences
(DatabaseObject databaseObject1, DatabaseObject databaseObject2, Database accordingTo, CompareControl compareControl, DatabaseObjectComparatorChain chain, Set<String> exclude) int
getPriority
(Class<? extends DatabaseObject> objectType, Database database) String[]
hash
(DatabaseObject databaseObject, Database accordingTo, DatabaseObjectComparatorChain chain) boolean
isSameObject
(DatabaseObject databaseObject1, DatabaseObject databaseObject2, Database accordingTo, DatabaseObjectComparatorChain chain)
-
Constructor Details
-
UniqueConstraintComparator
public UniqueConstraintComparator()
-
-
Method Details
-
getPriority
- Specified by:
getPriority
in interfaceDatabaseObjectComparator
-
hash
public String[] hash(DatabaseObject databaseObject, Database accordingTo, DatabaseObjectComparatorChain chain) - Specified by:
hash
in interfaceDatabaseObjectComparator
-
isSameObject
public boolean isSameObject(DatabaseObject databaseObject1, DatabaseObject databaseObject2, Database accordingTo, DatabaseObjectComparatorChain chain) - Specified by:
isSameObject
in interfaceDatabaseObjectComparator
-
findDifferences
public ObjectDifferences findDifferences(DatabaseObject databaseObject1, DatabaseObject databaseObject2, Database accordingTo, CompareControl compareControl, DatabaseObjectComparatorChain chain, Set<String> exclude) - Specified by:
findDifferences
in interfaceDatabaseObjectComparator
-