|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatabaseMetaDataReader
| Method Summary | |
|---|---|
java.lang.Iterable<? extends Field> |
getFields(java.sql.DatabaseMetaData databaseMetaData,
java.lang.String tableName)
|
java.lang.Iterable<? extends ForeignKey> |
getForeignKeys(java.sql.DatabaseMetaData databaseMetaData,
java.lang.String tableName)
Gets the list of foreign keys for a given table |
java.lang.Iterable<? extends Index> |
getIndexes(java.sql.DatabaseMetaData databaseMetaData,
java.lang.String tableName)
Gets the list of indexes for a given table |
java.lang.Iterable<java.lang.String> |
getTableNames(java.sql.DatabaseMetaData databaseMetaData)
Gets the names of the existing tables in the DB |
| Method Detail |
|---|
java.lang.Iterable<java.lang.String> getTableNames(java.sql.DatabaseMetaData databaseMetaData)
databaseMetaData - the meta data from which to extract the table names
Iterable of table names as strings
java.lang.Iterable<? extends Field> getFields(java.sql.DatabaseMetaData databaseMetaData,
java.lang.String tableName)
databaseMetaData - tableName -
java.lang.Iterable<? extends ForeignKey> getForeignKeys(java.sql.DatabaseMetaData databaseMetaData,
java.lang.String tableName)
databaseMetaData - the database metadata to read the information fromtableName - the name of the table from which to read the foreign keys
Iterable of foreign keys
java.lang.Iterable<? extends Index> getIndexes(java.sql.DatabaseMetaData databaseMetaData,
java.lang.String tableName)
databaseMetaData - the database metadata to read the information fromtableName - the name of the table from which to read the indexes
Iterable of indexes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||