liquibase.snapshot
Class JdbcDatabaseSnapshot.CachingDatabaseMetaData
java.lang.Object
liquibase.snapshot.JdbcDatabaseSnapshot.CachingDatabaseMetaData
- Enclosing class:
- JdbcDatabaseSnapshot
public class JdbcDatabaseSnapshot.CachingDatabaseMetaData
- extends Object
Method Summary |
List<JdbcDatabaseSnapshot.CachedRow> |
getColumns(String catalogName,
String schemaName,
String tableNamePattern,
String columnNamePattern)
Return the columns for the given catalog, schema, table, and column. |
DatabaseMetaData |
getDatabaseMetaData()
|
List<JdbcDatabaseSnapshot.CachedRow> |
getExportedKeys(String catalogName,
String schemaName,
String table)
|
List<JdbcDatabaseSnapshot.CachedRow> |
getImportedKeys(String catalogName,
String schemaName,
String table)
|
List<JdbcDatabaseSnapshot.CachedRow> |
getIndexInfo(String catalogName,
String schemaName,
String table,
boolean unique,
boolean approximate)
|
List<JdbcDatabaseSnapshot.CachedRow> |
getPrimaryKeys(String catalogName,
String schemaName,
String table)
|
List<JdbcDatabaseSnapshot.CachedRow> |
getTables(String catalogName,
String schemaName,
String tableNamePattern,
String[] types)
|
List<JdbcDatabaseSnapshot.CachedRow> |
query(String sql)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcDatabaseSnapshot.CachingDatabaseMetaData
public JdbcDatabaseSnapshot.CachingDatabaseMetaData(DatabaseMetaData metaData)
getDatabaseMetaData
public DatabaseMetaData getDatabaseMetaData()
getExportedKeys
public List<JdbcDatabaseSnapshot.CachedRow> getExportedKeys(String catalogName,
String schemaName,
String table)
throws SQLException
- Throws:
SQLException
getImportedKeys
public List<JdbcDatabaseSnapshot.CachedRow> getImportedKeys(String catalogName,
String schemaName,
String table)
throws SQLException
- Throws:
SQLException
getIndexInfo
public List<JdbcDatabaseSnapshot.CachedRow> getIndexInfo(String catalogName,
String schemaName,
String table,
boolean unique,
boolean approximate)
throws SQLException
- Throws:
SQLException
getColumns
public List<JdbcDatabaseSnapshot.CachedRow> getColumns(String catalogName,
String schemaName,
String tableNamePattern,
String columnNamePattern)
throws SQLException
- Return the columns for the given catalog, schema, table, and column.
Because this query can be expensive on some databases (I'm looking at you, Oracle), after a couple calls for different tables it will give up and get all columns for all tables.
To override when this
- Throws:
SQLException
getTables
public List<JdbcDatabaseSnapshot.CachedRow> getTables(String catalogName,
String schemaName,
String tableNamePattern,
String[] types)
throws SQLException
- Throws:
SQLException
getPrimaryKeys
public List<JdbcDatabaseSnapshot.CachedRow> getPrimaryKeys(String catalogName,
String schemaName,
String table)
throws SQLException
- Throws:
SQLException
query
public List<JdbcDatabaseSnapshot.CachedRow> query(String sql)
throws SQLException
- Throws:
SQLException
Copyright © 2013 Liquibase.org. All Rights Reserved.