Package liquibase.diff
Class DiffResult
java.lang.Object
liquibase.diff.DiffResult
-
Constructor Summary
ConstructorDescriptionDiffResult
(DatabaseSnapshot referenceDatabaseSnapshot, DatabaseSnapshot comparisonDatabaseSnapshot, CompareControl compareControl) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangedObject
(DatabaseObject obj, ObjectDifferences differences) void
void
boolean
areEqual()
getChangedObject
(DatabaseObject example, CompareControl.SchemaComparison[] schemaComparisons) <T extends DatabaseObject>
Map<T,ObjectDifferences> getChangedObjects
(Class<T> type) <T extends DatabaseObject>
SortedMap<T,ObjectDifferences> getChangedObjects
(Class<T> type, Comparator<DatabaseObject> comparator) Set<Class<? extends DatabaseObject>>
<T extends DatabaseObject>
TgetMissingObject
(T example, CompareControl.SchemaComparison[] schemaComparisons) Set<? extends DatabaseObject>
<T extends DatabaseObject>
Set<T>getMissingObjects
(Class<T> type) <T extends DatabaseObject>
SortedSet<T>getMissingObjects
(Class<T> type, Comparator<DatabaseObject> comparator) <T extends DatabaseObject>
TgetUnexpectedObject
(T example, CompareControl.SchemaComparison[] schemaComparisons) Set<? extends DatabaseObject>
<T extends DatabaseObject>
Set<T>getUnexpectedObjects
(Class<T> type) <T extends DatabaseObject>
SortedSet<T>getUnexpectedObjects
(Class<T> type, Comparator<DatabaseObject> comparator) void
setProductNameDiff
(StringDiff productNameDiff) void
setProductVersionDiff
(StringDiff productVersionDiff)
-
Constructor Details
-
DiffResult
public DiffResult(DatabaseSnapshot referenceDatabaseSnapshot, DatabaseSnapshot comparisonDatabaseSnapshot, CompareControl compareControl)
-
-
Method Details
-
getReferenceSnapshot
-
getComparisonSnapshot
-
getProductNameDiff
-
setProductNameDiff
-
getProductVersionDiff
-
setProductVersionDiff
-
getCompareControl
-
getMissingObjects
-
getMissingObjects
-
getMissingObjects
public <T extends DatabaseObject> SortedSet<T> getMissingObjects(Class<T> type, Comparator<DatabaseObject> comparator) -
getMissingObject
public <T extends DatabaseObject> T getMissingObject(T example, CompareControl.SchemaComparison[] schemaComparisons) -
addMissingObject
-
getUnexpectedObjects
-
getUnexpectedObjects
-
getUnexpectedObjects
public <T extends DatabaseObject> SortedSet<T> getUnexpectedObjects(Class<T> type, Comparator<DatabaseObject> comparator) -
getUnexpectedObject
public <T extends DatabaseObject> T getUnexpectedObject(T example, CompareControl.SchemaComparison[] schemaComparisons) -
addUnexpectedObject
-
getChangedObjects
-
getChangedObjects
-
getChangedObjects
public <T extends DatabaseObject> SortedMap<T,ObjectDifferences> getChangedObjects(Class<T> type, Comparator<DatabaseObject> comparator) -
getChangedObject
public ObjectDifferences getChangedObject(DatabaseObject example, CompareControl.SchemaComparison[] schemaComparisons) -
addChangedObject
-
areEqual
- Throws:
DatabaseException
IOException
-
getComparedTypes
-