|
||||||||||
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.postgresql.PostgreSqlModelReader
Reads a database model from a PostgreSql database.
Constructor Summary | |
PostgreSqlModelReader(PlatformInfo platformInfo)
Creates a new model reader for PostgreSql databases. |
Method Summary | |
protected boolean |
isInternalForeignKeyIndex(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(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 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PostgreSqlModelReader(PlatformInfo platformInfo)
platformInfo
- The platform specific settingsMethod 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 Column readColumn(DatabaseMetaDataWrapper metaData, Map values) throws SQLException
readColumn
in class JdbcModelReader
metaData
- The database meta datavalues
- The column meta data values as defined by JdbcModelReader.getColumnsForColumn()
SQLException
protected boolean isInternalForeignKeyIndex(Table table, ForeignKey fk, Index index)
isInternalForeignKeyIndex
in class JdbcModelReader
table
- 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 oneprotected boolean isInternalPrimaryKeyIndex(Table table, Index index)
isInternalPrimaryKeyIndex
in class JdbcModelReader
table
- The table owning the indexindex
- The index to check
true
if the index seems to be an internal primary key one
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |