public abstract class AbstractResultsetRows extends java.lang.Object implements ResultsetRows
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BEFORE_START_OF_ROWS |
protected int |
currentPositionInFetchedRows
Position in cache of rows, used to determine if we need to fetch more
rows from the server to satisfy a request for the next row.
|
protected ColumnDefinition |
metadata
Field-level metadata from the server.
|
protected ResultsetRowsOwner |
owner
The result set that we 'belong' to.
|
protected ProtocolEntityFactory<ResultsetRow,NativePacketPayload> |
rowFactory |
protected boolean |
wasEmpty |
RESULT_SET_SIZE_UNKNOWN| Constructor and Description |
|---|
AbstractResultsetRows() |
| Modifier and Type | Method and Description |
|---|---|
ColumnDefinition |
getMetadata() |
ResultsetRowsOwner |
getOwner()
Returns the result set that 'owns' this RowData
|
void |
setMetadata(ColumnDefinition columnDefinition)
Sometimes the driver doesn't have metadata until after
the statement has the result set in-hand (because it's cached),
so it can call this to set it after the fact.
|
void |
setOwner(ResultsetRowsOwner rs)
Set the result set that 'owns' this RowData
|
boolean |
wasEmpty()
Did this result set have no rows?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRow, afterLast, beforeFirst, beforeLast, close, isAfterLast, isBeforeFirst, isDynamic, isEmpty, isFirst, isLast, moveRowRelative, setCurrentRowget, getPosition, previous, sizeprotected static final int BEFORE_START_OF_ROWS
protected ColumnDefinition metadata
protected int currentPositionInFetchedRows
protected boolean wasEmpty
protected ResultsetRowsOwner owner
protected ProtocolEntityFactory<ResultsetRow,NativePacketPayload> rowFactory
public void setOwner(ResultsetRowsOwner rs)
ResultsetRowssetOwner in interface ResultsetRowsrs - the result set that 'owns' this RowDatapublic ResultsetRowsOwner getOwner()
ResultsetRowsgetOwner in interface ResultsetRowsResultsetRowsOwnerpublic void setMetadata(ColumnDefinition columnDefinition)
ResultsetRowssetMetadata in interface ResultsetRowscolumnDefinition - field-level metadata for the result setpublic ColumnDefinition getMetadata()
getMetadata in interface ResultsetRowspublic boolean wasEmpty()
ResultsetRowswasEmpty in interface ResultsetRows