public interface SFConnectionHandler
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.
|
default String |
getBindStageName()
Overridable method that allows for different connection implementations to use different stage
names for binds uploads.
|
SFBaseFileTransferAgent |
getFileTransferAgent(String command,
SFBaseStatement statement) |
SFBaseSession |
getSFSession()
Gets the SFBaseSession implementation for this connection implementation
|
SFBaseStatement |
getSFStatement()
Returns the SFStatementInterface implementation for this connection implementation
|
void |
initializeConnection(String url,
Properties info)
Initializes the SnowflakeConnection
|
boolean |
supportsAsyncQuery()
Whether this Connection supports asynchronous queries.
|
boolean supportsAsyncQuery()
void initializeConnection(String url, Properties info) throws SQLException
SQLException
SFBaseSession getSFSession()
SFBaseStatement getSFStatement() throws SQLException
SQLException
ResultSet createResultSet(String queryID, Statement statement) throws SQLException
SQLException
SnowflakeBaseResultSet createResultSet(SFBaseResultSet resultSet, Statement statement) throws SQLException
SQLException
SnowflakeBaseResultSet createAsyncResultSet(SFBaseResultSet resultSet, Statement statement) throws SQLException
SQLException
SFBaseFileTransferAgent getFileTransferAgent(String command, SFBaseStatement statement) throws SQLNonTransientConnectionException, SnowflakeSQLException
command
- The command to parse for this file transfer (e.g., PUT/GET)statement
- The statement to use for this file transferSQLNonTransientConnectionException
SnowflakeSQLException
default String getBindStageName()
Copyright © 2022. All rights reserved.