Package com.firebolt.jdbc.connection
Class FireboltConnectionServiceSecret
java.lang.Object
com.firebolt.jdbc.JdbcBase
com.firebolt.jdbc.connection.FireboltConnection
com.firebolt.jdbc.connection.FireboltConnectionServiceSecret
- All Implemented Interfaces:
CacheListener,GenericWrapper,AutoCloseable,Connection,Wrapper,EventListener
- Direct Known Subclasses:
LocalhostFireboltConnection
-
Field Summary
Fields inherited from class com.firebolt.jdbc.connection.FireboltConnection
httpConnectionUrl, loginProperties, parserVersion, sessionPropertiesFields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected FireboltAuthenticationClientcreateFireboltAuthenticationClient(okhttp3.OkHttpClient httpClient) protected FireboltPropertiesextractFireboltProperties(String jdbcUri, Properties connectionProperties) Returns the backend type that the connection is established toprotected CacheKeyA connection should implement this method if it needs to set additional details on the user agent header for the calls sent to Firebolt backendintReturns the version of the firebolt backend the connection is established toprotected booleanIf the connection information can be cached for subsequent reuse, then the specific connection should provide implementationprotected voidIf there is no entry in the cache with this key, add one if caching is enabledprotected voidPerform syntactic validation for the mandatory connection params which are: - clientId - clientSecret - account Also make sure the access token is not passed inMethods 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, getAccessToken, 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, prepareInternalRequestValidationConnection, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, register, releaseSavepoint, removeClosedStatement, removeExpiredTokens, reset, retrieveMetaData, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setEndpoint, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMapMethods inherited from class com.firebolt.jdbc.JdbcBase
addWarning, clearWarnings, getWarningsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.Connection
beginRequest, clearWarnings, endRequest, getWarnings, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValidMethods inherited from interface com.firebolt.jdbc.GenericWrapper
isWrapperFor, unwrap
-
Method Details
-
authenticate
- Specified by:
authenticatein classFireboltConnection- Throws:
SQLException
-
prepareCacheIfNeeded
protected void prepareCacheIfNeeded()If there is no entry in the cache with this key, add one if caching is enabled -
validateConnectionParameters
Perform syntactic validation for the mandatory connection params which are: - clientId - clientSecret - account Also make sure the access token is not passed in- Specified by:
validateConnectionParametersin classFireboltConnection- Throws:
FireboltException
-
isConnectionCachingEnabled
protected boolean isConnectionCachingEnabled()Description copied from class:FireboltConnectionIf the connection information can be cached for subsequent reuse, then the specific connection should provide implementation- Specified by:
isConnectionCachingEnabledin classFireboltConnection- Returns:
- - true if the connection supports caching. False otherwise
-
getConnectionUserAgentHeader
Description copied from class:FireboltConnectionA 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:
getConnectionUserAgentHeaderin classFireboltConnection- Returns:
-
getBackendType
Description copied from class:FireboltConnectionReturns the backend type that the connection is established to- Specified by:
getBackendTypein classFireboltConnection- Returns:
-
getCacheKey
-
extractFireboltProperties
protected FireboltProperties extractFireboltProperties(String jdbcUri, Properties connectionProperties) - Overrides:
extractFireboltPropertiesin classFireboltConnection
-
createFireboltAuthenticationClient
protected FireboltAuthenticationClient createFireboltAuthenticationClient(okhttp3.OkHttpClient httpClient) - Specified by:
createFireboltAuthenticationClientin classFireboltConnection
-
getInfraVersion
public int getInfraVersion()Description copied from class:FireboltConnectionReturns the version of the firebolt backend the connection is established to- Specified by:
getInfraVersionin classFireboltConnection
-