public class ColumnSnapshotGenerator extends JdbcSnapshotGenerator
Modifier and Type | Field and Description |
---|---|
protected static String |
COLUMN_DEF_COL |
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
Constructor and Description |
---|
ColumnSnapshotGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addTo(DatabaseObject foundObject,
DatabaseSnapshot snapshot) |
protected Column |
readColumn(CachedRow columnMetadataResultSet,
Relation table,
Database database) |
protected DataType |
readDataType(CachedRow columnMetadataResultSet,
Column column,
Database database)
Processes metadata of a column, e.g.
|
protected Object |
readDefaultValue(CachedRow columnMetadataResultSet,
Column columnInfo,
Database database) |
protected void |
setAutoIncrementDetails(Column column,
Database database,
DatabaseSnapshot snapshot) |
protected DatabaseObject |
snapshotObject(DatabaseObject example,
DatabaseSnapshot snapshot) |
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, getPriority, replaces, shouldAddTo, snapshot, updateListeners
protected static final String COLUMN_DEF_COL
protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException
snapshotObject
in class JdbcSnapshotGenerator
DatabaseException
protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException
addTo
in class JdbcSnapshotGenerator
DatabaseException
protected void setAutoIncrementDetails(Column column, Database database, DatabaseSnapshot snapshot)
protected Column readColumn(CachedRow columnMetadataResultSet, Relation table, Database database) throws SQLException, DatabaseException
SQLException
DatabaseException
protected DataType readDataType(CachedRow columnMetadataResultSet, Column column, Database database) throws DatabaseException
DatabaseMetaData
.getColumns() method. Depending on Database, additional columns might be present.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 originatesDatabaseException
- If an error occurs during processing (mostly caused by Exceptions in JDBC calls)Copyright © 2023 Liquibase.org. All rights reserved.