public class DefaultSFConnectionHandler extends Object implements SFConnectionHandler
| Constructor and Description |
|---|
DefaultSFConnectionHandler(SnowflakeConnectString conStr)
Constructs a DefaultConnectionHandler using a SnowflakeConnectString.
|
DefaultSFConnectionHandler(SnowflakeConnectString conStr,
boolean skipOpen)
Constructs a DefaultConnectionHandler using a SnowflakeConnectString.
|
| Modifier and Type | Method and Description |
|---|---|
SnowflakeBaseResultSet |
createAsyncResultSet(SFBaseResultSet resultSet,
Statement statement)
Creates an asynchronous result set from a base SFBaseResultSet for this connection
implementation.
|
SnowflakeBaseResultSet |
createResultSet(SFBaseResultSet resultSet,
Statement statement)
Creates a SnowflakeResultSet from a base SFBaseResultSet for this connection implementation.
|
ResultSet |
createResultSet(String queryID,
Statement statement)
Creates a result set from a query id.
|
SFBaseFileTransferAgent |
getFileTransferAgent(String command,
SFBaseStatement statement) |
SFBaseSession |
getSFSession()
Returns the default SFSession client implementation.
|
SFBaseStatement |
getSFStatement()
Returns the default SFStatement client implementation.
|
protected void |
initialize(SnowflakeConnectString conStr,
String appID,
String appVersion) |
void |
initializeConnection(String url,
Properties info)
Initializes the SnowflakeConnection
|
static Map<String,Object> |
mergeProperties(SnowflakeConnectString conStr)
Processes parameters given in the connection string.
|
boolean |
supportsAsyncQuery()
Whether this Connection supports asynchronous queries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBindStageNamepublic DefaultSFConnectionHandler(SnowflakeConnectString conStr)
conStr - A SnowflakeConnectString objectpublic DefaultSFConnectionHandler(SnowflakeConnectString conStr, boolean skipOpen)
conStr - A SnowflakeConnectString objectskipOpen - Skip calling open() on the session (for test-use only)public static Map<String,Object> mergeProperties(SnowflakeConnectString conStr)
conStr - Connection string objectpublic boolean supportsAsyncQuery()
SFConnectionHandlersupportsAsyncQuery in interface SFConnectionHandlerpublic void initializeConnection(String url, Properties info) throws SQLException
SFConnectionHandlerinitializeConnection in interface SFConnectionHandlerSQLExceptionpublic SFBaseSession getSFSession()
getSFSession in interface SFConnectionHandlerpublic SFBaseStatement getSFStatement()
getSFStatement in interface SFConnectionHandlerprotected void initialize(SnowflakeConnectString conStr, String appID, String appVersion) throws SQLException
SQLExceptionpublic ResultSet createResultSet(String queryID, Statement statement) throws SQLException
SFConnectionHandlercreateResultSet in interface SFConnectionHandlerSQLExceptionpublic SnowflakeBaseResultSet createResultSet(SFBaseResultSet resultSet, Statement statement) throws SQLException
SFConnectionHandlercreateResultSet in interface SFConnectionHandlerSQLExceptionpublic SnowflakeBaseResultSet createAsyncResultSet(SFBaseResultSet resultSet, Statement statement) throws SQLException
SFConnectionHandlercreateAsyncResultSet in interface SFConnectionHandlerSQLExceptionpublic SFBaseFileTransferAgent getFileTransferAgent(String command, SFBaseStatement statement) throws SQLNonTransientConnectionException, SnowflakeSQLException
getFileTransferAgent in interface SFConnectionHandlercommand - The command to parse for this file transfer (e.g., PUT/GET)statement - The statement to use for this file transferSQLNonTransientConnectionExceptionSnowflakeSQLExceptionCopyright © 2022. All rights reserved.