Package liquibase.snapshot.jvm
Class ColumnSnapshotGenerator
java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.ColumnSnapshotGenerator
- All Implemented Interfaces:
- SnapshotGenerator
- Direct Known Subclasses:
- ColumnSnapshotGeneratorH2,- ColumnSnapshotGeneratorInformix,- ColumnSnapshotGeneratorOracle
- 
Field SummaryFieldsFields inherited from interface liquibase.snapshot.SnapshotGeneratorPRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected ColumnreadColumn(CachedRow columnMetadataResultSet, Relation table, Database database) protected DataTypereadDataType(CachedRow columnMetadataResultSet, Column column, Database database) Processes metadata of a column, e.g. name, type and default value.protected ObjectreadDefaultValue(CachedRow columnMetadataResultSet, Column columnInfo, Database database) protected voidsetAutoIncrementDetails(Column column, Database database, DatabaseSnapshot snapshot) protected DatabaseObjectsnapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGeneratoraddStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, getPriority, replaces, shouldAddTo, snapshot, updateListeners
- 
Field Details- 
COLUMN_DEF_COL- See Also:
 
 
- 
- 
Constructor Details- 
ColumnSnapshotGeneratorpublic ColumnSnapshotGenerator()
 
- 
- 
Method Details- 
snapshotObjectprotected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException - Specified by:
- snapshotObjectin class- JdbcSnapshotGenerator
- Throws:
- DatabaseException
 
- 
addToprotected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException - Specified by:
- addToin class- JdbcSnapshotGenerator
- Throws:
- DatabaseException
 
- 
setAutoIncrementDetails
- 
readColumnprotected Column readColumn(CachedRow columnMetadataResultSet, Relation table, Database database) throws SQLException, DatabaseException - Throws:
- SQLException
- DatabaseException
 
- 
readDataTypeprotected DataType readDataType(CachedRow columnMetadataResultSet, Column column, Database database) throws DatabaseException Processes 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.- Parameters:
- columnMetadataResultSet- the result from the JDBC getColumns() call for the column
- column- 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)
 
- 
readDefaultValue
 
-