Package com.firebolt.jdbc.connection
Class LocalhostFireboltConnection
java.lang.Object
com.firebolt.jdbc.JdbcBase
com.firebolt.jdbc.connection.FireboltConnection
com.firebolt.jdbc.connection.FireboltConnectionServiceSecret
com.firebolt.jdbc.connection.LocalhostFireboltConnection
- All Implemented Interfaces:
CacheListener
,GenericWrapper
,AutoCloseable
,Connection
,Wrapper
,EventListener
A Connection to firebolt that is using localhost as the url of the firebolt server. It will talk to a firebolt 2.0 server.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
getAccessToken
(FireboltProperties fireboltProperties) The access token should always be available on the login properties.protected CacheKey
protected void
For localhost connection validate: - accessToken is populatedMethods inherited from class com.firebolt.jdbc.connection.FireboltConnectionServiceSecret
createFireboltAuthenticationClient, extractFireboltProperties, getConnectionUserAgentHeader, getInfraVersion, isConnectionCachingEnabled, prepareCacheIfNeeded
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, 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
-
Method Details
-
authenticate
- Overrides:
authenticate
in classFireboltConnectionServiceSecret
- Throws:
SQLException
-
getAccessToken
protected Optional<String> getAccessToken(FireboltProperties fireboltProperties) throws SQLException The access token should always be available on the login properties.- Overrides:
getAccessToken
in classFireboltConnection
- Throws:
SQLException
-
validateConnectionParameters
For localhost connection validate: - accessToken is populated- Overrides:
validateConnectionParameters
in classFireboltConnectionServiceSecret
- Throws:
FireboltException
-
getCacheKey
- Overrides:
getCacheKey
in classFireboltConnectionServiceSecret
-