|
|||||||||
| 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.sybase.SybaseModelReader
public class SybaseModelReader
Reads a database model from a Sybase database.
| Constructor Summary | |
|---|---|
SybaseModelReader(Platform platform)
Creates a new model reader for Sybase databases. |
|
| Method Summary | |
|---|---|
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 |
readForeignKeys(DatabaseMetaDataWrapper metaData,
String tableName)
Retrieves the foreign keys of the indicated table. |
protected void |
readIndex(DatabaseMetaDataWrapper metaData,
Map values,
Map knownIndices)
Reads the next index spec 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 SybaseModelReader(Platform platform)
platform - The platform that this model reader belongs to| Method Detail |
|---|
protected 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 table
SQLException
protected 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()
SQLException
protected void readIndex(DatabaseMetaDataWrapper metaData,
Map values,
Map knownIndices)
throws SQLException
readIndex in class JdbcModelReadermetaData - The database meta datavalues - The index meta data as defined by JdbcModelReader.getColumnsForIndex()knownIndices - The already read indices for the current table
SQLException
protected 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 information
SQLException
protected 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 check
true if the index seems to be an internal primary key one
SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||