Package io.github.jdbcx.driver
Class ConnectionManager
java.lang.Object
io.github.jdbcx.driver.ConnectionManager
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConnectionManager(io.github.jdbcx.ConfigManager configManager, Map<String, DriverExtension> extensions, DriverExtension defaultExtension, Connection conn, String url, Properties extensionProps, Properties normalizedProps, String originalUrl, Properties originalProps) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static final <T> Tio.github.jdbcx.QueryContextcreateDefaultListener(io.github.jdbcx.QueryContext context) createListener(io.github.jdbcx.QueryContext context) static io.github.jdbcx.Result<?> describe(DriverExtension ext, Properties props) protected Connectionenlist(Connection newConn) static final JdbcDialectfindDialect(String product) Gets bridge context.Gets base64 encoded token to access bridge server.io.github.jdbcx.ConfigManagergetExtension(String name) getMatchedExtensions(String pattern) getMetaData(DatabaseMetaData metaData) getMetaData(ParameterMetaData metaData) getMetaData(ResultSetMetaData metaData) io.github.jdbcx.VariableTagbooleanbooleanstatic final Stringnormalize(String result, io.github.jdbcx.VariableTag tag, Properties props) static final String
-
Field Details
-
DB_EXTENSION
- See Also:
-
JDBC_PREFIX
- See Also:
-
JDBCX_PREFIX
-
-
Constructor Details
-
ConnectionManager
public ConnectionManager(io.github.jdbcx.ConfigManager configManager, Map<String, DriverExtension> extensions, DriverExtension defaultExtension, Connection conn, String url, Properties extensionProps, Properties normalizedProps, String originalUrl, Properties originalProps)
-
-
Method Details
-
translate
-
describe
-
normalize
public static final String normalize(String result, io.github.jdbcx.VariableTag tag, Properties props) -
convertTo
public static final <T> T convertTo(io.github.jdbcx.Result<?> result, Class<T> clazz) throws SQLException - Throws:
SQLException
-
findDialect
-
enlist
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
SQLException
-
createWrappedConnection
-
createConnection
-
createContext
public io.github.jdbcx.QueryContext createContext() -
createDefaultListener
-
createListener
public JdbcActivityListener createListener(io.github.jdbcx.QueryContext context) throws SQLException - Throws:
SQLException
-
extractProperties
-
getConfigManager
public io.github.jdbcx.ConfigManager getConfigManager() -
getConnection
-
getSupportedExtensions
-
getVariableTag
public io.github.jdbcx.VariableTag getVariableTag() -
getMetaData
-
getDialect
-
isUsingDatabaseExtension
public boolean isUsingDatabaseExtension() -
isUsingDatabaseOrDefaultExtension
public boolean isUsingDatabaseOrDefaultExtension() -
getDefaultExtension
-
getExtensions
-
getMatchedExtensions
- Throws:
SQLException
-
getExtension
- Throws:
SQLException
-
getBridgeUrl
-
getBridgeContext
Gets bridge context.- Returns:
- non-empty
Propertieswith the bridge server config as parent
-
getBridgeToken
Gets base64 encoded token to access bridge server.- Returns:
- non-null base64 encoded token
-
getJdbcUrl
-
getExtensionProperties
-
getOriginalProperties
-
getNormalizedProperties
-
getMetaData
- Throws:
SQLException
-
getMetaData
- Throws:
SQLException
-
getMetaData
- Throws:
SQLException
-