Package liquibase.snapshot
Class JdbcDatabaseSnapshot.CachingDatabaseMetaData
java.lang.Object
liquibase.snapshot.JdbcDatabaseSnapshot.CachingDatabaseMetaData
- Enclosing class:
- JdbcDatabaseSnapshot
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColumns
(String catalogName, String schemaName, String tableName, String columnName) Return the columns for the given catalog, schema, table, and column.getForeignKeys
(String catalogName, String schemaName, String tableName, String fkName) getIndexInfo
(String catalogName, String schemaName, String tableName, String indexName) getNotNullConst
(String catalogName, String schemaName, String tableName) Return the NotNullConstraints for the given catalog, schema, table, and column.getPrimaryKeys
(String catalogName, String schemaName, String table) getUniqueConstraints
(String catalogName, String schemaName, String tableName) protected void
-
Constructor Details
-
CachingDatabaseMetaData
-
-
Method Details
-
getDatabaseMetaData
-
getForeignKeys
public List<CachedRow> getForeignKeys(String catalogName, String schemaName, String tableName, String fkName) throws DatabaseException - Throws:
DatabaseException
-
getIndexInfo
public List<CachedRow> getIndexInfo(String catalogName, String schemaName, String tableName, String indexName) throws DatabaseException, SQLException - Throws:
DatabaseException
SQLException
-
warnAboutDbaRecycleBin
protected void warnAboutDbaRecycleBin() -
getColumns
public List<CachedRow> getColumns(String catalogName, String schemaName, String tableName, String columnName) throws SQLException, DatabaseException Return the columns for the given catalog, schema, table, and column.- Throws:
SQLException
DatabaseException
-
getNotNullConst
public List<CachedRow> getNotNullConst(String catalogName, String schemaName, String tableName) throws DatabaseException Return the NotNullConstraints for the given catalog, schema, table, and column.- Throws:
DatabaseException
-
getTables
public List<CachedRow> getTables(String catalogName, String schemaName, String table) throws DatabaseException - Throws:
DatabaseException
-
getViews
public List<CachedRow> getViews(String catalogName, String schemaName, String viewName) throws DatabaseException - Throws:
DatabaseException
-
getPrimaryKeys
public List<CachedRow> getPrimaryKeys(String catalogName, String schemaName, String table) throws DatabaseException - Throws:
DatabaseException
-
getUniqueConstraints
public List<CachedRow> getUniqueConstraints(String catalogName, String schemaName, String tableName) throws DatabaseException - Throws:
DatabaseException
-