public class SnowflakeResultSetV1 extends SnowflakeBaseResultSet
binaryFormatter, dateFormatter, endOfResult, fetchDirection, fetchSize, honorClientTZForTimestampNTZ, nextRow, parameters, resultSetMetaData, resultVersion, row, timeFormatter, timestampLTZFormatter, timestampNTZFormatter, timestampTZFormatter, timeZone, timeZoneUTC, wasNullCLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE| Constructor and Description |
|---|
SnowflakeResultSetV1(SFBaseResultSet sfBaseResultSet,
Statement statement)
Constructor takes an inputstream from the API response that we get from
executing a SQL statement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
BigDecimal |
getBigDecimal(int columnIndex) |
BigDecimal |
getBigDecimal(int columnIndex,
int scale) |
boolean |
getBoolean(int columnIndex) |
byte[] |
getBytes(int columnIndex) |
Date |
getDate(int columnIndex) |
Date |
getDate(int columnIndex,
TimeZone tz) |
double |
getDouble(int columnIndex) |
float |
getFloat(int columnIndex) |
int |
getInt(int columnIndex) |
long |
getLong(int columnIndex) |
ResultSetMetaData |
getMetaData() |
Object |
getObject(int columnIndex) |
int |
getRow() |
short |
getShort(int columnIndex) |
Statement |
getStatement() |
long |
getStatementTypeId() |
String |
getString(int columnIndex) |
Time |
getTime(int columnIndex) |
Timestamp |
getTimestamp(int columnIndex) |
Timestamp |
getTimestamp(int columnIndex,
TimeZone tz) |
boolean |
isClosed() |
boolean |
isFirst() |
boolean |
next()
Advance to next row
|
boolean |
wasNull() |
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getByte, getByte, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDouble, getFetchDirection, getFetchSize, getFloat, getHoldability, getInt, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObjectInternal, getRef, getRef, getRowId, getRowId, getSFTime, getSFTimestamp, getShort, getSQLXML, getSQLXML, getString, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateObject, updateObject, updateObject, updateObjectpublic SnowflakeResultSetV1(SFBaseResultSet sfBaseResultSet, Statement statement) throws SQLException
The constructor will fetch the first row (if any) so that it can initialize the ResultSetMetaData.
sfBaseResultSet - snowflake core base result rest objectstatement - query statement that generates this result setSQLException - if failed to construct snowflake result set metadatapublic boolean next()
throws SQLException
next in interface ResultSetnext in class SnowflakeBaseResultSetSQLException - if failed to move to the next rowpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface ResultSetclose in class SnowflakeBaseResultSetSQLExceptionpublic boolean wasNull()
wasNull in interface ResultSetwasNull in class SnowflakeBaseResultSetpublic String getString(int columnIndex) throws SQLException
getString in interface ResultSetgetString in class SnowflakeBaseResultSetSQLExceptionpublic boolean getBoolean(int columnIndex)
throws SQLException
getBoolean in interface ResultSetgetBoolean in class SnowflakeBaseResultSetSQLExceptionpublic short getShort(int columnIndex)
throws SQLException
getShort in interface ResultSetgetShort in class SnowflakeBaseResultSetSQLExceptionpublic int getInt(int columnIndex)
throws SQLException
getInt in interface ResultSetgetInt in class SnowflakeBaseResultSetSQLExceptionpublic long getLong(int columnIndex)
throws SQLException
getLong in interface ResultSetgetLong in class SnowflakeBaseResultSetSQLExceptionpublic float getFloat(int columnIndex)
throws SQLException
getFloat in interface ResultSetgetFloat in class SnowflakeBaseResultSetSQLExceptionpublic double getDouble(int columnIndex)
throws SQLException
getDouble in interface ResultSetgetDouble in class SnowflakeBaseResultSetSQLExceptionpublic Date getDate(int columnIndex, TimeZone tz) throws SQLException
getDate in class SnowflakeBaseResultSetSQLExceptionpublic Date getDate(int columnIndex) throws SQLException
getDate in interface ResultSetgetDate in class SnowflakeBaseResultSetSQLExceptionpublic Time getTime(int columnIndex) throws SQLException
getTime in interface ResultSetgetTime in class SnowflakeBaseResultSetSQLExceptionpublic Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp in interface ResultSetgetTimestamp in class SnowflakeBaseResultSetSQLExceptionpublic Timestamp getTimestamp(int columnIndex, TimeZone tz) throws SQLException
getTimestamp in class SnowflakeBaseResultSetSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface ResultSetgetMetaData in class SnowflakeBaseResultSetSQLExceptionpublic Object getObject(int columnIndex) throws SQLException
getObject in interface ResultSetgetObject in class SnowflakeBaseResultSetSQLExceptionpublic BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal in interface ResultSetgetBigDecimal in class SnowflakeBaseResultSetSQLExceptionpublic BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
getBigDecimal in interface ResultSetgetBigDecimal in class SnowflakeBaseResultSetSQLExceptionpublic byte[] getBytes(int columnIndex)
throws SQLException
getBytes in interface ResultSetgetBytes in class SnowflakeBaseResultSetSQLExceptionpublic int getRow()
throws SQLException
getRow in interface ResultSetgetRow in class SnowflakeBaseResultSetSQLExceptionpublic boolean isFirst()
throws SQLException
isFirst in interface ResultSetisFirst in class SnowflakeBaseResultSetSQLExceptionpublic Statement getStatement() throws SQLException
getStatement in interface ResultSetgetStatement in class SnowflakeBaseResultSetSQLExceptionpublic long getStatementTypeId()
public boolean isClosed()
throws SQLException
isClosed in interface ResultSetisClosed in class SnowflakeBaseResultSetSQLExceptionCopyright © 2017. All rights reserved.