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, wait
addRow, afterLast, beforeFirst, beforeLast, close, isAfterLast, isBeforeFirst, isDynamic, isEmpty, isFirst, isLast, moveRowRelative, setCurrentRow
get, getPosition, previous, size
protected 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)
ResultsetRows
setOwner
in interface ResultsetRows
rs
- the result set that 'owns' this RowDatapublic ResultsetRowsOwner getOwner()
ResultsetRows
getOwner
in interface ResultsetRows
ResultsetRowsOwner
public void setMetadata(ColumnDefinition columnDefinition)
ResultsetRows
setMetadata
in interface ResultsetRows
columnDefinition
- field-level metadata for the result setpublic ColumnDefinition getMetadata()
getMetadata
in interface ResultsetRows
public boolean wasEmpty()
ResultsetRows
wasEmpty
in interface ResultsetRows