public class SFResultSet extends SFBaseResultSet
| Modifier and Type | Field and Description |
|---|---|
protected SFStatement |
statement |
binaryFormatter, dateFormatter, honorClientTZForTimestampNTZ, isClosed, numberOfBinds, parameters, resultSetMetaData, resultVersion, row, session, timeFormatter, timestampLTZFormatter, timestampNTZFormatter, timestampTZFormatter, timeZone, wasNull| 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) |
String |
getQueryId() |
SFStatementType |
getStatementType() |
boolean |
isAfterLast() |
boolean |
isArrayBindSupported() |
boolean |
isLast() |
boolean |
next()
Advance to next row
|
void |
setStatementType(SFStatementType statementType) |
absolute, getBigDecimal, getBigDecimal, getBoolean, getBytes, getDate, getDate, getDouble, getFloat, getInt, getLong, getMetaData, getNumberOfBinds, getObject, getRow, getShort, getString, getTime, getTimestamp, 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
getObjectInternal in class SFBaseResultSetSFExceptionpublic 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.