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(Map<String, DriverExtension> extensions, DriverExtension defaultExtension, Connection conn, String url, Properties extensionProps, Properties normalizedProps, Properties originalProps) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static final <T> TcreateDefaultListener(QueryContext context) createListener(QueryContext context) static Result<?>describe(DriverExtension ext, Properties props) static final JdbcDialectfindDialect(String product) Gets base64 encoded token to access bridge server.getExtension(String name) getMatchedExtensions(String pattern) getMetaData(DatabaseMetaData metaData) getMetaData(ParameterMetaData metaData) getMetaData(ResultSetMetaData metaData) static final Stringnormalize(String result, VariableTag tag, Properties props) static final String
-
Field Details
-
JDBC_PREFIX
- See Also:
-
JDBCX_PREFIX
-
-
Constructor Details
-
ConnectionManager
public ConnectionManager(Map<String, DriverExtension> extensions, DriverExtension defaultExtension, Connection conn, String url, Properties extensionProps, Properties normalizedProps, Properties originalProps)
-
-
Method Details
-
translate
-
describe
-
normalize
-
convertTo
- Throws:
SQLException
-
findDialect
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
SQLException
-
createConnection
-
createContext
-
createDefaultListener
-
createListener
- Throws:
SQLException
-
extractProperties
-
getConnection
-
getVariableTag
-
getMetaData
-
getDialect
-
getDefaultExtension
-
getExtensions
-
getMatchedExtensions
- Throws:
SQLException
-
getExtension
- Throws:
SQLException
-
getBridgeUrl
-
getBridgeConfig
-
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
-