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