liquibase.snapshot
Class JdbcDatabaseSnapshot.CachingDatabaseMetaData

java.lang.Object
  extended by liquibase.snapshot.JdbcDatabaseSnapshot.CachingDatabaseMetaData
Enclosing class:
JdbcDatabaseSnapshot

public class JdbcDatabaseSnapshot.CachingDatabaseMetaData
extends Object


Constructor Summary
JdbcDatabaseSnapshot.CachingDatabaseMetaData(Database database, DatabaseMetaData metaData)
           
 
Method Summary
 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> 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 view)
           
protected  void warnAboutDbaRecycleBin()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcDatabaseSnapshot.CachingDatabaseMetaData

public JdbcDatabaseSnapshot.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
Throws:
DatabaseException

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

getTables

public List<CachedRow> getTables(String catalogName,
                                 String schemaName,
                                 String table)
                          throws SQLException,
                                 DatabaseException
Throws:
SQLException
DatabaseException

getViews

public List<CachedRow> getViews(String catalogName,
                                String schemaName,
                                String view)
                         throws SQLException,
                                DatabaseException
Throws:
SQLException
DatabaseException

getPrimaryKeys

public List<CachedRow> getPrimaryKeys(String catalogName,
                                      String schemaName,
                                      String table)
                               throws SQLException,
                                      DatabaseException
Throws:
SQLException
DatabaseException

getUniqueConstraints

public List<CachedRow> getUniqueConstraints(String catalogName,
                                            String schemaName,
                                            String tableName)
                                     throws SQLException,
                                            DatabaseException
Throws:
SQLException
DatabaseException


Copyright © 2016 Liquibase.org. All rights reserved.