public class ResultsetRowsStatic extends AbstractResultsetRows implements ResultsetRows
BEFORE_START_OF_ROWS, currentPositionInFetchedRows, metadata, owner, rowFactory, wasEmptyRESULT_SET_SIZE_UNKNOWN| Constructor and Description |
|---|
ResultsetRowsStatic(java.util.List<? extends Row> rows,
ColumnDefinition columnDefinition)
Creates a new RowDataStatic object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(Row row)
Adds a row.
|
void |
afterLast()
Moves to after last.
|
void |
beforeFirst()
Moves to before first.
|
void |
beforeLast()
Moves to before last.
|
Row |
get(int atIndex)
Optionally retrieve Row at index n.
|
int |
getPosition()
Returns the current position.
|
boolean |
hasNext() |
boolean |
isAfterLast()
Returns true if we got the last element.
|
boolean |
isBeforeFirst()
Returns if iteration has not occured yet.
|
boolean |
isDynamic()
Returns true if the result set is dynamic.
|
boolean |
isEmpty()
Has no records.
|
boolean |
isFirst()
Are we on the first row of the result set?
|
boolean |
isLast()
Are we on the last row of the result set?
|
void |
moveRowRelative(int rowsToMove)
Moves the current position relative 'rows' from the current position.
|
Row |
next() |
void |
remove() |
void |
setCurrentRow(int newIndex)
Moves the current position in the result set to the given row number.
|
int |
size()
Only works on non dynamic row lists.
|
boolean |
wasEmpty()
Did this result set have no rows?
|
getMetadata, getOwner, setMetadata, setOwnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getMetadata, getOwner, setMetadata, setOwnerpublic ResultsetRowsStatic(java.util.List<? extends Row> rows, ColumnDefinition columnDefinition)
rows - list of Row instancescolumnDefinition - ColumnDefinition for this result setpublic void addRow(Row row)
ResultsetRowsaddRow in interface ResultsetRowsrow - the row to addpublic void afterLast()
ResultsetRowsafterLast in interface ResultsetRowspublic void beforeFirst()
ResultsetRowsbeforeFirst in interface ResultsetRowspublic void beforeLast()
ResultsetRowsbeforeLast in interface ResultsetRowspublic Row get(int atIndex)
RowListpublic int getPosition()
RowListgetPosition in interface RowListpublic boolean hasNext()
hasNext in interface java.util.Iterator<Row>public boolean isAfterLast()
ResultsetRowsisAfterLast in interface ResultsetRowspublic boolean isBeforeFirst()
ResultsetRowsisBeforeFirst in interface ResultsetRowspublic boolean isDynamic()
ResultsetRowsisDynamic in interface ResultsetRowspublic boolean isEmpty()
ResultsetRowsisEmpty in interface ResultsetRowspublic boolean isFirst()
ResultsetRowsisFirst in interface ResultsetRowspublic boolean isLast()
ResultsetRowsisLast in interface ResultsetRowspublic void moveRowRelative(int rowsToMove)
ResultsetRowsmoveRowRelative in interface ResultsetRowsrowsToMove - the relative number of rows to movepublic void remove()
remove in interface java.util.Iterator<Row>public void setCurrentRow(int newIndex)
ResultsetRowssetCurrentRow in interface ResultsetRowsnewIndex - row to move topublic int size()
RowListpublic boolean wasEmpty()
ResultsetRowswasEmpty in interface ResultsetRowswasEmpty in class AbstractResultsetRows