public class Db2ModelReader extends JdbcModelReader
| Constructor and Description |
|---|
Db2ModelReader(Platform platform)
Creates a new model reader for Db2 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.
|
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 Table |
readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
closeResultSet, closeStatement, convertAction, determineAutoIncrementFromResultSetMetaData, determineSchemaOf, getColumnsForColumn, getColumnsForFK, getColumnsForIndex, getColumnsForPK, getColumnsForTable, getConnection, getDatabase, getDatabase, getDefaultCatalogPattern, getDefaultColumnPattern, getDefaultSchemaPattern, getDefaultTablePattern, getDefaultTableTypes, getLog, getPlatform, getPlatformInfo, initColumnsForColumn, initColumnsForFK, initColumnsForIndex, initColumnsForPK, initColumnsForTable, isInternalForeignKeyIndex, matches, readColumns, readColumns, readForeignKey, readForeignKeys, readIndex, readIndices, readPrimaryKeyName, readPrimaryKeyNames, readTables, removeInternalForeignKeyIndex, removeInternalPrimaryKeyIndex, removeSystemIndices, setDefaultCatalogPattern, setDefaultColumnPattern, setDefaultSchemaPattern, setDefaultTablePattern, setDefaultTableTypes, sortForeignKeys, unescapepublic Db2ModelReader(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 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 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 oneSQLExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.