public class JdbcMetadataInfo extends Object
GridKernalContext to get information about database entities in terms of JDBC.| Constructor and Description |
|---|
JdbcMetadataInfo(GridKernalContext ctx)
Initializes info.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<JdbcColumnMeta> |
getColumnsMeta(@Nullable ClientListenerProtocolVersion protoVer,
String schemaNamePtrn,
String tblNamePtrn,
String colNamePtrn)
See
DatabaseMetaData.getColumns(String, String, String, String) for details. |
SortedSet<JdbcIndexMeta> |
getIndexesMeta(String schemaNamePtrn,
String tblNamePtrn)
|
Collection<JdbcPrimaryKeyMeta> |
getPrimaryKeys(String schemaNamePtrn,
String tblNamePtrn)
See
DatabaseMetaData.getPrimaryKeys(String, String, String) for details. |
SortedSet<String> |
getSchemasMeta(String schemaNamePtrn)
See
DatabaseMetaData.getSchemas(String, String) for details. |
List<JdbcTableMeta> |
getTablesMeta(String schemaNamePtrn,
String tblNamePtrn,
String[] tblTypes)
See
DatabaseMetaData.getTables(String, String, String, String[]) for details. |
public JdbcMetadataInfo(GridKernalContext ctx)
ctx - GridKernalContextpublic Collection<JdbcPrimaryKeyMeta> getPrimaryKeys(String schemaNamePtrn, String tblNamePtrn)
DatabaseMetaData.getPrimaryKeys(String, String, String) for details.
Ignite has only one possible CATALOG_NAME, it is handled on the client (driver) side.public List<JdbcTableMeta> getTablesMeta(String schemaNamePtrn, String tblNamePtrn, String[] tblTypes)
DatabaseMetaData.getTables(String, String, String, String[]) for details.
Ignite has only one possible value for CATALOG_NAME and has only one table type so these parameters are handled
on the client (driver) side.
Result is ordered by (schema name, table name).schemaNamePtrn - sql pattern for schema name.tblNamePtrn - sql pattern for table name.tblTypes - Requested table types.public Collection<JdbcColumnMeta> getColumnsMeta(@Nullable @Nullable ClientListenerProtocolVersion protoVer, String schemaNamePtrn, String tblNamePtrn, String colNamePtrn)
DatabaseMetaData.getColumns(String, String, String, String) for details.
Ignite has only one possible CATALOG_NAME, it is handled on the client (driver) side.protoVer - for what version of protocol to generate metadata. Early versions of protocol don't support some
features like default values or precision/scale. If null, current version will be used.public SortedSet<String> getSchemasMeta(String schemaNamePtrn)
DatabaseMetaData.getSchemas(String, String) for details.
Ignite has only one possible CATALOG_NAME, it is handled on the client (driver) side.schemaNamePtrn - sql pattern for schema name filter.public SortedSet<JdbcIndexMeta> getIndexesMeta(String schemaNamePtrn, String tblNamePtrn)
DatabaseMetaData.getIndexInfo(String, String, String, boolean, boolean) for details.
Ignite has only one possible CATALOG_NAME, it is handled on the client (driver) side. Parameters unique
approximate are ignored.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020