|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.platform.JdbcModelReader
org.apache.ddlutils.platform.interbase.InterbaseModelReader
The Jdbc Model Reader for Interbase.
Constructor Summary | |
InterbaseModelReader(Platform platform)
Creates a new model reader for Interbase databases. |
Method Summary | |
protected void |
adjustColumns(Table table)
Adjusts the columns in the table by fixing types and default values. |
protected void |
determineAutoIncrementColumns(Table table)
Helper method that determines the auto increment status using Interbase's system tables. |
protected void |
determineExtraColumnInfo(Table table)
Helper method that determines extra column info from the system tables: default value, precision, scale. |
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. Note that only non-unique indices with the correct columns are fed to this method. Redefine this method for specific platforms if there are better ways to determine internal indices. |
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. Note that only unique indices with the correct columns are fed to this method. Redefine this method for specific platforms if there are better ways to determine internal indices. |
protected Collection |
readColumns(DatabaseMetaDataWrapper metaData,
String tableName)
Reads the column definitions 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InterbaseModelReader(Platform platform)
platform
- The platform that this model reader belongs toMethod Detail |
protected Table readTable(DatabaseMetaDataWrapper metaData, Map values) throws SQLException
readTable
in class JdbcModelReader
metaData
- The database meta datavalues
- The table metadata values as defined by JdbcModelReader.getColumnsForTable()
null
if the result set row did not contain a valid table
SQLException
protected Collection readColumns(DatabaseMetaDataWrapper metaData, String tableName) throws SQLException
readColumns
in class JdbcModelReader
metaData
- The database meta datatableName
- The name of the table
SQLException
protected void determineExtraColumnInfo(Table table) throws SQLException
table
- The table
SQLException
protected void determineAutoIncrementColumns(Table table) throws SQLException
table
- The table
SQLException
protected void adjustColumns(Table table)
table
- The tableprotected Collection readPrimaryKeyNames(DatabaseMetaDataWrapper metaData, String tableName) throws SQLException
readPrimaryKeyNames
in class JdbcModelReader
metaData
- The database meta datatableName
- The name of the table from which to retrieve PK information
SQLException
protected boolean isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData, Table table, Index index) throws SQLException
isInternalPrimaryKeyIndex
in class JdbcModelReader
metaData
- The database meta datatable
- The table owning the indexindex
- The index to check
true
if the index seems to be an internal primary key one
SQLException
protected boolean isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData, Table table, ForeignKey fk, Index index) throws SQLException
isInternalForeignKeyIndex
in class JdbcModelReader
metaData
- The database meta datatable
- The table owning the index and foreign keyfk
- The foreign keyindex
- The index to check
true
if the index seems to be an internal primary key one
SQLException
public String determineSchemaOf(Connection connection, String schemaPattern, Table table) throws SQLException
determineSchemaOf
in class JdbcModelReader
connection
- The database connectionschemaPattern
- The schema pattern to limit the schemas to search intable
- The table to search for
null
if the schema of the table
could not be found
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |