Package liquibase.snapshot
Class JdbcDatabaseSnapshot.CachingDatabaseMetaData
- java.lang.Object
-
- liquibase.snapshot.JdbcDatabaseSnapshot.CachingDatabaseMetaData
-
- Enclosing class:
- JdbcDatabaseSnapshot
public class JdbcDatabaseSnapshot.CachingDatabaseMetaData extends Object
-
-
Constructor Summary
Constructors Constructor Description CachingDatabaseMetaData(Database database, DatabaseMetaData metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CachedRow>
getColumns(String catalogName, String schemaName, String tableName, String columnName)
Return the columns for the given catalog, schema, table, and column.DatabaseMetaData
getDatabaseMetaData()
List<CachedRow>
getForeignKeys(String catalogName, String schemaName, String tableName, String fkName)
List<CachedRow>
getIndexInfo(String catalogName, String schemaName, String tableName, String indexName)
List<CachedRow>
getNotNullConst(String catalogName, String schemaName, String tableName)
Return the NotNullConstraints for the given catalog, schema, table, and column.List<CachedRow>
getPrimaryKeys(String catalogName, String schemaName, String table)
List<CachedRow>
getTables(String catalogName, String schemaName, String table)
List<CachedRow>
getUniqueConstraints(String catalogName, String schemaName, String tableName)
List<CachedRow>
getViews(String catalogName, String schemaName, String viewName)
protected void
warnAboutDbaRecycleBin()
-
-
-
Constructor Detail
-
CachingDatabaseMetaData
public CachingDatabaseMetaData(Database database, DatabaseMetaData metaData)
-
-
Method Detail
-
getDatabaseMetaData
public DatabaseMetaData 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
-
-