Package net.snowflake.client.jdbc
Interface SnowflakeStatement
-
public interface SnowflakeStatement
This interface defines Snowflake specific APIs for Statement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResultSet
executeAsyncQuery(String sql)
Execute SQL query asynchronouslyList<String>
getBatchQueryIDs()
String
getQueryID()
void
resultSetMetadataHandler(SFBaseResultSet resultSet)
This method exposes SFBaseResultSet to the sub-classes of SnowflakeStatementV1.java.void
setBatchID(String batchID)
void
setParameter(String name, Object value)
Set statement level parameter
-
-
-
Method Detail
-
getQueryID
String getQueryID() throws SQLException
- Returns:
- the Snowflake query ID of the latest executed query
- Throws:
SQLException
-
getBatchQueryIDs
List<String> getBatchQueryIDs() throws SQLException
- Returns:
- the Snowflake query IDs of the latest executed batch queries
- Throws:
SQLException
-
setParameter
void setParameter(String name, Object value) throws SQLException
Set statement level parameter- Parameters:
name
- parameter namevalue
- parameter value- Throws:
SQLException
-
setBatchID
void setBatchID(String batchID)
-
executeAsyncQuery
ResultSet executeAsyncQuery(String sql) throws SQLException
Execute SQL query asynchronously- Parameters:
sql
- sql statement- Returns:
- ResultSet
- Throws:
SQLException
- if @link{#executeQueryInternal(String, Map)} throws an exception
-
resultSetMetadataHandler
void resultSetMetadataHandler(SFBaseResultSet resultSet) throws SQLException
This method exposes SFBaseResultSet to the sub-classes of SnowflakeStatementV1.java. This is required as SnowflakeStatementV1 doesn't directly expose ResultSet to the sub-classes making it challenging to get additional information from the previously executed query.- Parameters:
resultSet
-- Throws:
SQLException
-
-