public class SFResultSet extends SFJsonResultSet
| Modifier and Type | Field and Description |
|---|---|
protected SFStatement |
statement |
isClosed, metaDataOfBinds, numberOfBinds, parameters, resultSetMetaData, resultVersion, row, session| Constructor and Description |
|---|
SFResultSet(com.fasterxml.jackson.databind.JsonNode result,
SFStatement statement,
boolean sortResult)
Constructor takes a result from the API response that we get from
executing a SQL statement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Object |
getObjectInternal(int columnIndex)
Given a column index, get current row's value as an object
|
String |
getQueryId() |
SFStatementType |
getStatementType() |
boolean |
isAfterLast() |
boolean |
isArrayBindSupported() |
boolean |
isLast() |
boolean |
next()
Advance to next row
|
void |
setStatementType(SFStatementType statementType) |
getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestampabsolute, getMetaData, getMetaDataOfBinds, getNumberOfBinds, getRow, isBeforeFirst, isClosed, isFirst, previous, relative, setSession, wasNullprotected SFStatement statement
public SFResultSet(com.fasterxml.jackson.databind.JsonNode result,
SFStatement statement,
boolean sortResult)
throws SQLException,
SFException
The constructor will initialize the ResultSetMetaData.
result - result data in JSON formstatement - statement objectsortResult - true if sort results otherwise falseSQLException - exception raised from general SQL layersSFException - exception raised from Snowflake componentspublic boolean next()
throws SFException,
SnowflakeSQLException
next in class SFBaseResultSetSFExceptionSnowflakeSQLExceptionprotected Object getObjectInternal(int columnIndex) throws SFException
SFJsonResultSetgetObjectInternal in class SFJsonResultSetSFExceptionpublic boolean isLast()
isLast in class SFBaseResultSetpublic boolean isAfterLast()
isAfterLast in class SFBaseResultSetpublic void close()
close in class SFBaseResultSetpublic SFStatementType getStatementType()
getStatementType in class SFBaseResultSetpublic void setStatementType(SFStatementType statementType)
setStatementType in class SFBaseResultSetpublic boolean isArrayBindSupported()
isArrayBindSupported in class SFBaseResultSetpublic String getQueryId()
getQueryId in class SFBaseResultSetCopyright © 2019. All rights reserved.