public class FirebirdModelReader extends JdbcModelReader
| Constructor and Description |
|---|
FirebirdModelReader(Platform platform)
Creates a new model reader for Firebird databases.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
determineAutoIncrementColumns(Table table)
Helper method that determines the auto increment status using Firebird's system tables.
|
String |
determineSchemaOf(Connection connection,
String schemaPattern,
Table table)
Tries to find the schema to which the given table belongs.
|
protected boolean |
isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected boolean |
isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
protected Column |
readColumn(DatabaseMetaDataWrapper metaData,
Map values)
Extracts a column definition from the result set.
|
protected Collection |
readColumns(DatabaseMetaDataWrapper metaData,
String tableName)
Reads the column definitions for the indicated table.
|
protected Collection |
readForeignKeys(DatabaseMetaDataWrapper metaData,
String tableName)
Retrieves the foreign keys of the indicated table.
|
protected Collection |
readIndices(DatabaseMetaDataWrapper metaData,
String tableName)
Determines the indices for the indicated table.
|
protected Collection |
readPrimaryKeyNames(DatabaseMetaDataWrapper metaData,
String tableName)
Retrieves the names of the columns that make up the primary key for a given table.
|
protected Table |
readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
closeResultSet, closeStatement, convertAction, determineAutoIncrementFromResultSetMetaData, getColumnsForColumn, getColumnsForFK, getColumnsForIndex, getColumnsForPK, getColumnsForTable, getConnection, getDatabase, getDatabase, getDefaultCatalogPattern, getDefaultColumnPattern, getDefaultSchemaPattern, getDefaultTablePattern, getDefaultTableTypes, getLog, getPlatform, getPlatformInfo, initColumnsForColumn, initColumnsForFK, initColumnsForIndex, initColumnsForPK, initColumnsForTable, matches, readColumns, readForeignKey, readIndex, readPrimaryKeyName, readTables, removeInternalForeignKeyIndex, removeInternalPrimaryKeyIndex, removeSystemIndices, setDefaultCatalogPattern, setDefaultColumnPattern, setDefaultSchemaPattern, setDefaultTablePattern, setDefaultTableTypes, sortForeignKeys, unescapepublic FirebirdModelReader(Platform platform)
platform - The platform that this model reader belongs toprotected Table readTable(DatabaseMetaDataWrapper metaData, Map values) throws SQLException
readTable in class JdbcModelReadermetaData - The database meta datavalues - The table metadata values as defined by JdbcModelReader.getColumnsForTable()null if the result set row did not contain a valid tableSQLExceptionprotected Collection readColumns(DatabaseMetaDataWrapper metaData, String tableName) throws SQLException
readColumns in class JdbcModelReadermetaData - The database meta datatableName - The name of the tableSQLExceptionprotected Column readColumn(DatabaseMetaDataWrapper metaData, Map values) throws SQLException
readColumn in class JdbcModelReadermetaData - The database meta datavalues - The column meta data values as defined by JdbcModelReader.getColumnsForColumn()SQLExceptionprotected void determineAutoIncrementColumns(Table table) throws SQLException
table - The tableSQLExceptionprotected Collection readPrimaryKeyNames(DatabaseMetaDataWrapper metaData, String tableName) throws SQLException
readPrimaryKeyNames in class JdbcModelReadermetaData - The database meta datatableName - The name of the table from which to retrieve PK informationSQLExceptionprotected Collection readForeignKeys(DatabaseMetaDataWrapper metaData, String tableName) throws SQLException
readForeignKeys in class JdbcModelReadermetaData - The database meta datatableName - The name of the table from which to retrieve FK informationSQLExceptionprotected Collection readIndices(DatabaseMetaDataWrapper metaData, String tableName) throws SQLException
readIndices in class JdbcModelReadermetaData - The database meta datatableName - The name of the tableSQLExceptionprotected boolean isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData, Table table, Index index) throws SQLException
isInternalPrimaryKeyIndex in class JdbcModelReadermetaData - The database meta datatable - The table owning the indexindex - The index to checktrue if the index seems to be an internal primary key oneSQLExceptionprotected boolean isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData, Table table, ForeignKey fk, Index index) throws SQLException
isInternalForeignKeyIndex in class JdbcModelReadermetaData - The database meta datatable - The table owning the index and foreign keyfk - The foreign keyindex - The index to checktrue if the index seems to be an internal primary key oneSQLExceptionpublic String determineSchemaOf(Connection connection, String schemaPattern, Table table) throws SQLException
determineSchemaOf in class JdbcModelReaderconnection - The database connectionschemaPattern - The schema pattern to limit the schemas to search intable - The table to search fornull if the schema of the table
could not be foundSQLExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.