Package io.github.jdbcx.extension
Class BridgeDriverExtension
java.lang.Object
io.github.jdbcx.extension.BridgeDriverExtension
- All Implemented Interfaces:
DriverExtension,Comparable<DriverExtension>
-
Field Summary
FieldsFields inherited from interface io.github.jdbcx.DriverExtension
DEFAULT_JDBC_TABLE_TYPE, JDBC_TABLE_FIELDS, PROPERTY_BRIDGE_TOKEN, PROPERTY_BRIDGE_URL, PROPERTY_PATH, PROPERTY_PRODUCT, PROPERTY_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.github.jdbcx.extension.BridgeDriverExtension.ActivityListenercreateListener(QueryContext context, Connection conn, Properties props) Creates a connection listener.Gets the default configuration options supported by this extension.getUsage()booleanWhether this extension requires bridge context(e.g.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, getAliases, getConfig, getConnection, getDefaultConfig, getName, getOptions, getSchemas, getTables, supportsDirectQuery, supportsInspection, supportsNoArguments
-
Field Details
-
OPTIONS
-
-
Constructor Details
-
BridgeDriverExtension
public BridgeDriverExtension()
-
-
Method Details
-
getDefaultOptions
Description copied from interface:DriverExtensionGets the default configuration options supported by this extension.- Specified by:
getDefaultOptionsin interfaceDriverExtension- Returns:
- non-null default options
-
createListener
public io.github.jdbcx.extension.BridgeDriverExtension.ActivityListener createListener(QueryContext context, Connection conn, Properties props) 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
-
requiresBridgeContext
public boolean requiresBridgeContext()Description copied from interface:DriverExtensionWhether this extension requires bridge context(e.g. current DB product, user, and bridge config etc.) or not.- Specified by:
requiresBridgeContextin interfaceDriverExtension- Returns:
- true if bridge context is required; false otherwise
-