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, 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 voidgetAccessToken(FireboltProperties fireboltProperties) The access token should always be available on the login properties.Returns the backend type that the connection is established toprotected CacheKeyprotected voidFor localhost connection validate: - accessToken is populatedMethods inherited from class com.firebolt.jdbc.connection.FireboltConnectionServiceSecret
createFireboltAuthenticationClient, extractFireboltProperties, getConnectionUserAgentHeader, getInfraVersion, isConnectionCachingEnabled, prepareCacheIfNeededMethods 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, 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
- Overrides:
authenticatein classFireboltConnectionServiceSecret- Throws:
SQLException
-
getAccessToken
protected Optional<String> getAccessToken(FireboltProperties fireboltProperties) throws SQLException The access token should always be available on the login properties.- Overrides:
getAccessTokenin classFireboltConnection- Throws:
SQLException
-
validateConnectionParameters
For localhost connection validate: - accessToken is populated- Overrides:
validateConnectionParametersin classFireboltConnectionServiceSecret- Throws:
FireboltException
-
getCacheKey
- Overrides:
getCacheKeyin classFireboltConnectionServiceSecret
-
getBackendType
Description copied from class:FireboltConnectionReturns the backend type that the connection is established to- Overrides:
getBackendTypein classFireboltConnectionServiceSecret- Returns:
-