Top Constructors Methods
liquibase.diff.compare.core

public Class ColumnComparator

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ObjectDifferences
public int
public String[]
private boolean

Returns:

true if the types are essentially equivalent (bigserial and int8/bigint would be considered equivalent), false otherwise
isPostgresAutoIncrementEquivalentType
(String
first type to compare
type1
,
String
second type to compare
type2
)

Determine if the two types are essentially equivalent.

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ColumnComparatorback to summary
public ColumnComparator()

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
isPostgresAutoIncrementEquivalentTypeback to summary
private boolean isPostgresAutoIncrementEquivalentType(String type1, String type2)

Determine if the two types are essentially equivalent.

Parameters
type1:String

first type to compare

type2:String

second type to compare

Returns:boolean

true if the types are essentially equivalent (bigserial and int8/bigint would be considered equivalent), false otherwise

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

Implements liquibase.diff.compare.DatabaseObjectComparator.isSameObject.

Annotations
@Override