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 SFSession |
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) |
abstract double |
getDouble(int columnIndex) |
abstract float |
getFloat(int columnIndex) |
abstract int |
getInt(int columnIndex) |
abstract long |
getLong(int columnIndex) |
SFResultSetMetaData |
getMetaData() |
protected List<MetaDataOfBinds> |
getMetaDataOfBinds() |
protected 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() |
SFSession |
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(SFSession 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 SFSession session
protected boolean isClosed
protected SnowflakeResultSetSerializableV1 resultSetSerializable
public abstract boolean isLast()
public abstract boolean isAfterLast()
public abstract String getString(int columnIndex) throws SFException
SFException
public abstract boolean getBoolean(int columnIndex) throws SFException
SFException
public abstract byte getByte(int columnIndex) throws SFException
SFException
public abstract short getShort(int columnIndex) throws SFException
SFException
public abstract int getInt(int columnIndex) throws SFException
SFException
public abstract long getLong(int columnIndex) throws SFException
SFException
public abstract float getFloat(int columnIndex) throws SFException
SFException
public abstract double getDouble(int columnIndex) throws SFException
SFException
public abstract byte[] getBytes(int columnIndex) throws SFException
SFException
public abstract Date getDate(int columnIndex) throws SFException
SFException
public abstract Time getTime(int columnIndex) throws SFException
SFException
public abstract Timestamp getTimestamp(int columnIndex, TimeZone tz) throws SFException
SFException
public abstract Object getObject(int columnIndex) throws SFException
SFException
public abstract BigDecimal getBigDecimal(int columnIndex) throws SFException
SFException
public abstract BigDecimal getBigDecimal(int columnIndex, int scale) throws SFException
SFException
public abstract SFStatementType getStatementType()
public abstract void setStatementType(SFStatementType statementType) throws SQLException
SQLException
public abstract String getQueryId()
public void setSession(SFSession session)
public SFSession getSession()
public boolean next() throws SFException, SnowflakeSQLException
SFException
SnowflakeSQLException
public void close() throws SnowflakeSQLException
SnowflakeSQLException
public boolean wasNull()
public SFResultSetMetaData getMetaData() throws SFException
SFException
public int getRow() throws SQLException
SQLException
public boolean absolute(int row) throws SFException
SFException
public boolean relative(int rows) throws SFException
SFException
public boolean previous() throws SFException
SFException
protected int getNumberOfBinds()
protected 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 © 2020. All rights reserved.