public interface Meta
DatabaseMetaData
This object can be obtained through DSLContext.meta()
in order to
provide convenient access to your database meta data. This abstraction has
two purposes:
SQLException
is
thrown, only the unchecked DataAccessException
ResultSet
objects with hard-to-remember API
constraintsModifier and Type | Method and Description |
---|---|
List<Catalog> |
getCatalogs()
Get all catalog objects from the underlying
DatabaseMetaData . |
List<UniqueKey<?>> |
getPrimaryKeys()
Get all primary keys from the underlying
DatabaseMetaData . |
List<Schema> |
getSchemas()
Get all schema objects from the underlying
DatabaseMetaData . |
List<Table<?>> |
getTables()
Get all table objects from the underlying
DatabaseMetaData . |
@Support List<Catalog> getCatalogs() throws DataAccessException
DatabaseMetaData
.
For those databases that don't really support JDBC meta data catalogs, a
single empty catalog (named ""
) will be returned. In other
words, there is always at least one catalog in a database.
NOTE: Catalogs are experimental in jOOQ 3.0
DataAccessException
- If something went wrong fetching the meta
objects@Support List<Schema> getSchemas() throws DataAccessException
DatabaseMetaData
.DataAccessException
- If something went wrong fetching the meta
objects@Support List<Table<?>> getTables() throws DataAccessException
DatabaseMetaData
.DataAccessException
- If something went wrong fetching the meta
objects@Support List<UniqueKey<?>> getPrimaryKeys() throws DataAccessException
DatabaseMetaData
.DataAccessException
- If something went wrong fetching the meta
objectsCopyright © 2014. All Rights Reserved.