Package io.github.jdbcx.extension
Class VersionDriverExtension
java.lang.Object
io.github.jdbcx.extension.VersionDriverExtension
- All Implemented Interfaces:
DriverExtension,JdbcActivityListener,Comparable<DriverExtension>
public final class VersionDriverExtension
extends Object
implements DriverExtension, JdbcActivityListener
-
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.getUsage()Result<?>booleanWhether this extension supports execution without passing any properties and content.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, getConfig, getConnection, getDefaultConfig, getDefaultOptions, getName, getOptions, getSchemas, getTables, hasConfig, supportsDirectQuery, supportsInspectionMethods inherited from interface io.github.jdbcx.JdbcActivityListener
onError, onMetaData, onMetaData, onMetaData, onQuery, onResult
-
Constructor Details
-
VersionDriverExtension
public VersionDriverExtension()
-
-
Method Details
-
getAliases
- Specified by:
getAliasesin interfaceDriverExtension
-
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
-
supportsNoArguments
public boolean supportsNoArguments()Description copied from interface:DriverExtensionWhether this extension supports execution without passing any properties and content.- Specified by:
supportsNoArgumentsin interfaceDriverExtension- Returns:
- true if the extension supports execution without passing any properties and content; false otherwise
-
onQuery
- Specified by:
onQueryin interfaceJdbcActivityListener- Throws:
SQLException
-