| Modifier and Type | Field and Description |
|---|---|
| protected NativeMessageBuilder | |
| private int | currentPositionInEntireResult
Where we are positionaly in the entire result set, used mostly to facilitate easy 'isBeforeFirst()' and 'isFirst()' methods. |
| private List | fetchedRows
The cache of rows we have retrieved from the server. |
| private boolean | firstFetchCompleted
Have we attempted to fetch any rows yet? |
| private boolean | lastRowFetched
Have we been told from the server that we have seen the last row? |
| private NativeProtocol | protocol
Communications channel to the server |
| Access | Constructor and Description |
|---|---|
| public | ResultsetRowsCursor(NativeProtocol
connection to the server. ioChannel, ColumnDefinition field-level metadata for the results that this cursor covers. columnDefinition)Creates a new cursor-backed row provider. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addRow(Row
the row to add row)Overrides default com. Adds a row. |
| public void | |
| public void | beforeFirst()
Overrides default com. Moves to before first. |
| public void | |
| public void | |
| private void | |
| public int | getPosition()
Overrides default com. Returns the current position. |
| public boolean | |
| public boolean | isAfterLast()
Implements com. Returns true if we got the last element. |
| public boolean | isBeforeFirst()
Implements com. Returns if iteration has not occured yet. |
| public boolean | |
| public boolean | isFirst()
Overrides default com. Are we on the first row of the result set? |
| public boolean | isLast()
Overrides default com. Are we on the last row of the result set? |
| public void | moveRowRelative(int
the relative number of rows to move rows)Overrides default com. Moves the current position relative 'rows' from the current position. |
| public Row | |
| public void | setCurrentRow(int
row to move to rowNumber)Overrides default com. Moves the current position in the result set to the given row number. |
| commandBuilder | back to summary |
|---|---|
| protected NativeMessageBuilder commandBuilder | |
| currentPositionInEntireResult | back to summary |
|---|---|
| private int currentPositionInEntireResult Where we are positionaly in the entire result set, used mostly to facilitate easy 'isBeforeFirst()' and 'isFirst()' methods. | |
| fetchedRows | back to summary |
|---|---|
| private List<Row> fetchedRows The cache of rows we have retrieved from the server. | |
| firstFetchCompleted | back to summary |
|---|---|
| private boolean firstFetchCompleted Have we attempted to fetch any rows yet? | |
| lastRowFetched | back to summary |
|---|---|
| private boolean lastRowFetched Have we been told from the server that we have seen the last row? | |
| protocol | back to summary |
|---|---|
| private NativeProtocol protocol Communications channel to the server | |
| ResultsetRowsCursor | back to summary |
|---|---|
| public ResultsetRowsCursor(NativeProtocol ioChannel, ColumnDefinition columnDefinition) Creates a new cursor-backed row provider.
| |
| addRow | back to summary |
|---|---|
| public void addRow(Row row) Overrides default com. Doc from com. Adds a row. | |
| afterLast | back to summary |
|---|---|
| public void afterLast() Overrides default com. Doc from com. Moves to after last.
| |
| beforeFirst | back to summary |
|---|---|
| public void beforeFirst() Overrides default com. Doc from com. Moves to before first.
| |
| beforeLast | back to summary |
|---|---|
| public void beforeLast() Overrides default com. Doc from com. Moves to before last.
| |
| close | back to summary |
|---|---|
| public void close() Overrides default com. Doc from com. We're done.
| |
| fetchMoreRows | back to summary |
|---|---|
| private void fetchMoreRows() | |
| getPosition | back to summary |
|---|---|
| public int getPosition() Overrides default com. Doc from com. Returns the current position.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| isAfterLast | back to summary |
|---|---|
| public boolean isAfterLast() Implements com. Doc from com. Returns true if we got the last element.
| |
| isBeforeFirst | back to summary |
|---|---|
| public boolean isBeforeFirst() Implements com. Doc from com. Returns if iteration has not occured yet.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides default com. Doc from com. Has no records.
| |
| isFirst | back to summary |
|---|---|
| public boolean isFirst() Overrides default com. Doc from com. Are we on the first row of the result set?
| |
| isLast | back to summary |
|---|---|
| public boolean isLast() Overrides default com. Doc from com. Are we on the last row of the result set?
| |
| moveRowRelative | back to summary |
|---|---|
| public void moveRowRelative(int rows) Overrides default com. Doc from com. Moves the current position relative 'rows' from the current position.
| |
| next | back to summary |
|---|---|
| public Row next() Implements java. Doc from java. Returns the next element in the iteration. | |
| setCurrentRow | back to summary |
|---|---|
| public void setCurrentRow(int rowNumber) Overrides default com. Doc from com. Moves the current position in the result set to the given row number.
| |