Package com.firebolt.jdbc.connection
Class FireboltCoreConnection
java.lang.Object
com.firebolt.jdbc.JdbcBase
com.firebolt.jdbc.connection.FireboltConnection
com.firebolt.jdbc.connection.FireboltCoreConnection
- All Implemented Interfaces:
CacheListener
,GenericWrapper
,AutoCloseable
,Connection
,Wrapper
,EventListener
-
Field Summary
Fields inherited from class com.firebolt.jdbc.connection.FireboltConnection
httpConnectionUrl, loginProperties, parserVersion, sessionProperties
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected FireboltAuthenticationClient
createFireboltAuthenticationClient
(okhttp3.OkHttpClient httpClient) There is no authentication for core, thus no tokenReturns the backend type that the connection is established toA connection should implement this method if it needs to set additional details on the user agent header for the calls sent to Firebolt backendint
Returns the version of the firebolt backend the connection is established toprotected boolean
If the connection information can be cached for subsequent reuse, then the specific connection should provide implementationprotected void
prepareInternalRequestValidationConnection
(Map<String, String> runtimeProperties) protected DatabaseMetaData
protected void
For firebolt core the required parameters are: - url - in the form of::// : Methods inherited from class com.firebolt.jdbc.connection.FireboltConnection
abort, addProperty, addProperty, addProperty, addProperty, cancelAsyncQuery, cleanup, close, commit, connect, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, extractFireboltProperties, getAccessToken, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getConnectionTimeout, getEndpoint, getEngine, getHoldability, getHttpClient, getMetaData, getNetworkTimeout, getProtocolVersion, getSchema, getSessionProperties, getTransactionIsolation, getTypeMap, isAsyncQueryRunning, isAsyncQuerySuccessful, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, register, releaseSavepoint, removeClosedStatement, removeExpiredTokens, reset, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setEndpoint, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap
Methods inherited from class com.firebolt.jdbc.JdbcBase
addWarning, clearWarnings, getWarnings
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.Connection
beginRequest, clearWarnings, endRequest, getWarnings, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
Methods inherited from interface com.firebolt.jdbc.GenericWrapper
isWrapperFor, unwrap
-
Constructor Details
-
FireboltCoreConnection
- Throws:
SQLException
-
-
Method Details
-
authenticate
- Specified by:
authenticate
in classFireboltConnection
- Throws:
SQLException
-
retrieveMetaData
- Overrides:
retrieveMetaData
in classFireboltConnection
-
validateConnectionParameters
For firebolt core the required parameters are: - url - in the form of::// : - Specified by:
validateConnectionParameters
in classFireboltConnection
- Throws:
SQLException
-
prepareInternalRequestValidationConnection
- Overrides:
prepareInternalRequestValidationConnection
in classFireboltConnection
-
createFireboltAuthenticationClient
protected FireboltAuthenticationClient createFireboltAuthenticationClient(okhttp3.OkHttpClient httpClient) - Specified by:
createFireboltAuthenticationClient
in classFireboltConnection
-
getAccessToken
There is no authentication for core, thus no token- Overrides:
getAccessToken
in classFireboltConnection
- Returns:
- Throws:
SQLException
-
getConnectionUserAgentHeader
Description copied from class:FireboltConnection
A connection should implement this method if it needs to set additional details on the user agent header for the calls sent to Firebolt backend- Specified by:
getConnectionUserAgentHeader
in classFireboltConnection
- Returns:
-
getBackendType
Description copied from class:FireboltConnection
Returns the backend type that the connection is established to- Specified by:
getBackendType
in classFireboltConnection
- Returns:
-
isConnectionCachingEnabled
protected boolean isConnectionCachingEnabled()Description copied from class:FireboltConnection
If the connection information can be cached for subsequent reuse, then the specific connection should provide implementation- Specified by:
isConnectionCachingEnabled
in classFireboltConnection
- Returns:
- - true if the connection supports caching. False otherwise
-
getInfraVersion
public int getInfraVersion()Description copied from class:FireboltConnection
Returns the version of the firebolt backend the connection is established to- Specified by:
getInfraVersion
in classFireboltConnection
-