public abstract class SFBaseResultSet extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isClosed |
protected List<MetaDataOfBinds> |
metaDataOfBinds |
protected int |
numberOfBinds |
protected Map<String,Object> |
parameters |
protected SFResultSetMetaData |
resultSetMetaData |
protected SnowflakeResultSetSerializableV1 |
resultSetSerializable |
protected long |
resultVersion |
protected int |
row |
protected SFBaseSession |
session |
| Constructor and Description |
|---|
SFBaseResultSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int row) |
void |
close() |
abstract BigDecimal |
getBigDecimal(int columnIndex) |
abstract BigDecimal |
getBigDecimal(int columnIndex,
int scale) |
abstract boolean |
getBoolean(int columnIndex) |
abstract byte |
getByte(int columnIndex) |
abstract byte[] |
getBytes(int columnIndex) |
abstract Date |
getDate(int columnIndex,
TimeZone tz) |
abstract double |
getDouble(int columnIndex) |
abstract float |
getFloat(int columnIndex) |
abstract int |
getInt(int columnIndex) |
abstract long |
getLong(int columnIndex) |
SFResultSetMetaData |
getMetaData() |
List<MetaDataOfBinds> |
getMetaDataOfBinds() |
int |
getNumberOfBinds() |
abstract Object |
getObject(int columnIndex) |
abstract String |
getQueryId() |
List<SnowflakeResultSetSerializable> |
getResultSetSerializables(long maxSizeInBytes)
Split this whole SnowflakeResultSetSerializable into small pieces based on the user specified
data size.
|
int |
getRow() |
SFBaseSession |
getSession() |
abstract short |
getShort(int columnIndex) |
abstract SFStatementType |
getStatementType() |
abstract String |
getString(int columnIndex) |
abstract Time |
getTime(int columnIndex) |
abstract Timestamp |
getTimestamp(int columnIndex,
TimeZone tz) |
abstract boolean |
isAfterLast() |
boolean |
isArrayBindSupported() |
boolean |
isBeforeFirst() |
boolean |
isClosed() |
boolean |
isFirst() |
abstract boolean |
isLast() |
boolean |
next() |
boolean |
previous() |
boolean |
relative(int rows) |
void |
setSession(SFBaseSession session) |
abstract void |
setStatementType(SFStatementType statementType) |
boolean |
wasNull() |
protected SFResultSetMetaData resultSetMetaData
protected int row
protected long resultVersion
protected int numberOfBinds
protected List<MetaDataOfBinds> metaDataOfBinds
protected SFBaseSession session
protected boolean isClosed
protected SnowflakeResultSetSerializableV1 resultSetSerializable
public abstract boolean isLast()
public abstract boolean isAfterLast()
public abstract String getString(int columnIndex) throws SFException
SFExceptionpublic abstract boolean getBoolean(int columnIndex)
throws SFException
SFExceptionpublic abstract byte getByte(int columnIndex)
throws SFException
SFExceptionpublic abstract short getShort(int columnIndex)
throws SFException
SFExceptionpublic abstract int getInt(int columnIndex)
throws SFException
SFExceptionpublic abstract long getLong(int columnIndex)
throws SFException
SFExceptionpublic abstract float getFloat(int columnIndex)
throws SFException
SFExceptionpublic abstract double getDouble(int columnIndex)
throws SFException
SFExceptionpublic abstract byte[] getBytes(int columnIndex)
throws SFException
SFExceptionpublic abstract Time getTime(int columnIndex) throws SFException
SFExceptionpublic abstract Timestamp getTimestamp(int columnIndex, TimeZone tz) throws SFException
SFExceptionpublic abstract Date getDate(int columnIndex, TimeZone tz) throws SFException
SFExceptionpublic abstract Object getObject(int columnIndex) throws SFException
SFExceptionpublic abstract BigDecimal getBigDecimal(int columnIndex) throws SFException
SFExceptionpublic abstract BigDecimal getBigDecimal(int columnIndex, int scale) throws SFException
SFExceptionpublic abstract SFStatementType getStatementType()
public abstract void setStatementType(SFStatementType statementType) throws SQLException
SQLExceptionpublic abstract String getQueryId()
public void setSession(SFBaseSession session)
public SFBaseSession getSession()
public boolean next()
throws SFException,
SnowflakeSQLException
SFExceptionSnowflakeSQLExceptionpublic void close()
throws SnowflakeSQLException
SnowflakeSQLExceptionpublic boolean wasNull()
public SFResultSetMetaData getMetaData() throws SFException
SFExceptionpublic int getRow()
throws SQLException
SQLExceptionpublic boolean absolute(int row)
throws SFException
SFExceptionpublic boolean relative(int rows)
throws SFException
SFExceptionpublic boolean previous()
throws SFException
SFExceptionpublic int getNumberOfBinds()
public List<MetaDataOfBinds> getMetaDataOfBinds()
public boolean isFirst()
public boolean isBeforeFirst()
public boolean isClosed()
public boolean isArrayBindSupported()
public List<SnowflakeResultSetSerializable> getResultSetSerializables(long maxSizeInBytes) throws SQLException
maxSizeInBytes - The expected max data size wrapped in the ResultSetSerializables object.
NOTE: this parameter is intended to make the data size in each serializable object to be
less than it. But if user specifies a small value which may be smaller than the data size
of one result chunk. So the definition can't be guaranteed completely. For this special
case, one serializable object is used to wrap the data chunk.SQLException - if fails to split objects.Copyright © 2022. All rights reserved.