Package io.github.jdbcx.extension
Class DbDriverExtension
java.lang.Object
io.github.jdbcx.extension.DbDriverExtension
- All Implemented Interfaces:
DriverExtension,Comparable<DriverExtension>
-
Field Summary
Fields inherited from interface io.github.jdbcx.DriverExtension
DEFAULT_JDBC_TABLE_TYPE, JDBC_TABLE_FIELDS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateListener(QueryContext context, Connection conn, Properties props) Creates a connection listener.getConnection(ConfigManager manager, String url, Properties props) Gets the default configuration options supported by this extension.getTables(ConfigManager manager, String schemaPattern, String tableNamePattern, String[] types, Properties props) getUsage()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.jdbcx.DriverExtension
compareTo, getConfig, getDefaultConfig, getName, getOptions, getSchemas, supportsDirectQuery, supportsInspection, supportsNoArguments
-
Constructor Details
-
DbDriverExtension
public DbDriverExtension()
-
-
Method Details
-
getAliases
- Specified by:
getAliasesin interfaceDriverExtension
-
getConnection
public Connection getConnection(ConfigManager manager, String url, Properties props) throws SQLException - Specified by:
getConnectionin interfaceDriverExtension- Throws:
SQLException
-
getTables
public ResultSet getTables(ConfigManager manager, String schemaPattern, String tableNamePattern, String[] types, Properties props) throws SQLException - Specified by:
getTablesin interfaceDriverExtension- Throws:
SQLException
-
getDefaultOptions
Description copied from interface:DriverExtensionGets the default configuration options supported by this extension.- Specified by:
getDefaultOptionsin interfaceDriverExtension- Returns:
- non-null default options
-
createListener
Description copied from interface:DriverExtensionCreates a connection listener.- Specified by:
createListenerin interfaceDriverExtension- Parameters:
context- query contextconn- connection to listenprops- connection properties, usually tailored for this extension- Returns:
- non-null connection listener
-
getDescription
- Specified by:
getDescriptionin interfaceDriverExtension
-
getUsage
- Specified by:
getUsagein interfaceDriverExtension
-