Top Constructors Methods
liquibase.diff.compare.core

public final Class DefaultDatabaseObjectComparator

extends Object
implements DatabaseObjectComparator
Class Inheritance
All Implemented Interfaces
liquibase.diff.compare.DatabaseObjectComparator
Imports
liquibase.database.Database, liquibase.diff.ObjectDifferences, liquibase.diff.compare.CompareControl, .DatabaseObjectComparator, .DatabaseObjectComparatorChain, .DatabaseObjectComparatorFactory, liquibase.structure.DatabaseObject, liquibase.structure.core.Column, .DataType, java.util.Collection, .HashSet, .Set

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ObjectDifferences
public int
public String[]
public boolean
public static boolean
nameMatches(DatabaseObject databaseObject1, DatabaseObject databaseObject2, Database accordingTo)

protected Object
undoCollection(Object potentialCollection, Object otherObject)

Sometimes an attribute in one object is a single-entity collection and on the other it is just the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultDatabaseObjectComparatorback to summary
public DefaultDatabaseObjectComparator()

Method Detail

findDifferencesback to summary
public ObjectDifferences findDifferences(DatabaseObject databaseObject1, DatabaseObject databaseObject2, Database accordingTo, CompareControl compareControl, DatabaseObjectComparatorChain chain, Set<String> exclude)

Implements liquibase.diff.compare.DatabaseObjectComparator.findDifferences.

Annotations
@Override
getPriorityback to summary
public int getPriority(Class<? extends DatabaseObject> objectType, Database database)

Implements liquibase.diff.compare.DatabaseObjectComparator.getPriority.

Annotations
@Override
hashback to summary
public String[] hash(DatabaseObject databaseObject, Database accordingTo, DatabaseObjectComparatorChain chain)

Implements liquibase.diff.compare.DatabaseObjectComparator.hash.

Annotations
@Override
isSameObjectback to summary
public boolean isSameObject(DatabaseObject databaseObject1, DatabaseObject databaseObject2, Database accordingTo, DatabaseObjectComparatorChain chain)

Implements liquibase.diff.compare.DatabaseObjectComparator.isSameObject.

Annotations
@Override
nameMatchesback to summary
public static boolean nameMatches(DatabaseObject databaseObject1, DatabaseObject databaseObject2, Database accordingTo)
undoCollectionback to summary
protected Object undoCollection(Object potentialCollection, Object otherObject)

Sometimes an attribute in one object is a single-entity collection and on the other it is just the object. Check the passed potentialCollection and if it is a single-entry collection of the same type as the otherObject, return just the collection element. Otherwise, return the original collection.