public interface ResultsetRows extends RowList, ProtocolEntity
RowList
functionality by providing row positioning, updatability and ownership.RESULT_SET_SIZE_UNKNOWN
Modifier and Type | Method and Description |
---|---|
default void |
addRow(Row row)
Adds a row.
|
default void |
afterLast()
Moves to after last.
|
default void |
beforeFirst()
Moves to before first.
|
default void |
beforeLast()
Moves to before last.
|
default void |
close()
We're done.
|
ColumnDefinition |
getMetadata() |
ResultsetRowsOwner |
getOwner()
Returns the result set that 'owns' this RowData
|
boolean |
isAfterLast()
Returns true if we got the last element.
|
boolean |
isBeforeFirst()
Returns if iteration has not occured yet.
|
default boolean |
isDynamic()
Returns true if the result set is dynamic.
|
default boolean |
isEmpty()
Has no records.
|
default boolean |
isFirst()
Are we on the first row of the result set?
|
default boolean |
isLast()
Are we on the last row of the result set?
|
default void |
moveRowRelative(int rows)
Moves the current position relative 'rows' from the current position.
|
default void |
setCurrentRow(int rowNumber)
Moves the current position in the result set to the given row number.
|
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?
|
get, getPosition, previous, size
default void addRow(Row row)
row
- the row to adddefault void afterLast()
default void beforeFirst()
default void beforeLast()
default void close()
ResultsetRowsOwner getOwner()
ResultsetRowsOwner
boolean isAfterLast()
boolean isBeforeFirst()
default boolean isDynamic()
default boolean isEmpty()
default boolean isFirst()
default boolean isLast()
default void moveRowRelative(int rows)
rows
- the relative number of rows to movedefault void setCurrentRow(int rowNumber)
rowNumber
- row to move tovoid setOwner(ResultsetRowsOwner rs)
rs
- the result set that 'owns' this RowDataboolean wasEmpty()
void setMetadata(ColumnDefinition columnDefinition)
columnDefinition
- field-level metadata for the result setColumnDefinition getMetadata()