Class JdbcMetadata
java.lang.Object
org.odpi.openmetadata.adapters.connectors.integration.jdbc.transfer.JdbcMetadata
JDBCResourceConnector works exclusively with JDBC API to retrieve metadata. It internally manages the connection but specific
calls to open and close the connection are needed, and in some cases converts the result into specific objects.
Generic use case is:
connector.open()
// connector usage
connector.getSchemas()
// more connector usage
connector.close()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColumns
(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) getExportedKeys
(String catalog, String schema, String table) getImportedKeys
(String catalog, String schema, String table) getPrimaryKeys
(String catalog, String schema, String table) getSchemas
(String catalog, String schemaPattern) getUrl()
-
Constructor Details
-
JdbcMetadata
-
-
Method Details
-
getUserName
- Throws:
SQLException
-
getDriverName
- Throws:
SQLException
-
getDatabaseProductName
- Throws:
SQLException
-
getUrl
- Throws:
SQLException
-
getDatabaseProductVersion
- Throws:
SQLException
-
getTableTypes
- Throws:
SQLException
-
getPrimaryKeys
public List<JdbcPrimaryKey> getPrimaryKeys(String catalog, String schema, String table) throws SQLException - Throws:
SQLException
-
getImportedKeys
public List<JdbcForeignKey> getImportedKeys(String catalog, String schema, String table) throws SQLException - Throws:
SQLException
-
getExportedKeys
public List<JdbcForeignKey> getExportedKeys(String catalog, String schema, String table) throws SQLException - Throws:
SQLException
-
getColumns
public List<JdbcColumn> getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException - Throws:
SQLException
-
getTables
public List<JdbcTable> getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException - Throws:
SQLException
-
getSchemas
- Throws:
SQLException
-
getSchemas
- Throws:
SQLException
-
getCatalogs
- Throws:
SQLException
-