Package liquibase.snapshot.jvm
Class ColumnSnapshotGeneratorInformix
java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.ColumnSnapshotGenerator
liquibase.snapshot.jvm.ColumnSnapshotGeneratorInformix
- All Implemented Interfaces:
SnapshotGenerator
Informix-specific parts of ColumnSnapshotGenerator to account for various quirks in IBM Informix.
-
Field Summary
Fields inherited from class liquibase.snapshot.jvm.ColumnSnapshotGenerator
COLUMN_DEF_COLFields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPriority(Class<? extends DatabaseObject> objectType, Database database) Inquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g.protected DataTypereadDataType(CachedRow columnMetadataResultSet, Column column, Database database) Processes metadata of a column, e.g. name, type and default value.Class<? extends SnapshotGenerator>[]replaces()Returns classes (and superclasses) that this SnapshotGenerator replaces.Methods inherited from class liquibase.snapshot.jvm.ColumnSnapshotGenerator
addTo, readColumn, readDefaultValue, setAutoIncrementDetails, snapshotObjectMethods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, shouldAddTo, snapshot, updateListeners
-
Constructor Details
-
ColumnSnapshotGeneratorInformix
public ColumnSnapshotGeneratorInformix()
-
-
Method Details
-
getPriority
Description copied from interface:SnapshotGeneratorInquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g. Table, Index, View etc.) in the DBMS database (e.g. Oracle, Postgres, HyperSQL etc.) A return priority of > 0 will be interpreted as capable. The highest priority for an objectType-database combination wins.- Specified by:
getPriorityin interfaceSnapshotGenerator- Overrides:
getPriorityin classJdbcSnapshotGenerator- Parameters:
objectType- The object type we are asked to snapshotdatabase- The DBMS for which the snapshotting should be done- Returns:
- An integer of PRIORITY_... constants indicating our capability and willingness to snapshot
-
replaces
Description copied from interface:SnapshotGeneratorReturns classes (and superclasses) that this SnapshotGenerator replaces. Return null or empty array to not affect the SnapshotGeneratorChain.- Specified by:
replacesin interfaceSnapshotGenerator- Overrides:
replacesin classJdbcSnapshotGenerator
-
readDataType
protected DataType readDataType(CachedRow columnMetadataResultSet, Column column, Database database) throws DatabaseException Description copied from class:ColumnSnapshotGeneratorProcesses metadata of a column, e.g. name, type and default value. We start with the result of the JDBCDatabaseMetaData.getColumns() method. Depending on Database, additional columns might be present.- Overrides:
readDataTypein classColumnSnapshotGenerator- Parameters:
columnMetadataResultSet- the result from the JDBC getColumns() call for the columncolumn- logical definition of the column (object form)database- the database from which the column originates- Returns:
- a DataType object with detailed information about the type
- Throws:
DatabaseException- If an error occurs during processing (mostly caused by Exceptions in JDBC calls)
-