Query / ScrollableResults
pattern is very similar to the JDBC java.sql.PreparedStatement /
java.sql.ResultSet pattern and so the semantics of methods
of this interface are similar to the similarly-named methods of
ResultSet.
Contrary to JDBC, columns of results are numbered from zero.
Query#scroll()
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | close()
Redeclares java. |
| public boolean | |
| public R | |
| public int | Returns: The current position number, numbered from 0; -1 indicates that there is no current rowGet the current position in the results. |
| public boolean | Returns: true if this is the first row of results,
otherwise falseIs this the first result? |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if there is a result at the new locationMoves the result cursor to the specified position. |
| public boolean | |
| public boolean | Returns: true if there is a result at the new locationa positive (forward) or negative (backward)
number of rows positions)Scroll the specified number of positions from the current position. |
| public void | setFetchSize(int fetchSize)
Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed. |
| public boolean | Returns: true if there is a row at that row numberthe row number. A positive number indicates
a value numbered from the first row; a
negative number indicates a value numbered
from the last row. rowNumber)Set the current position in the result set. |
| afterLast | back to summary |
|---|---|
| public void afterLast() Go to a location just after the last result. | |
| beforeFirst | back to summary |
|---|---|
| public void beforeFirst() Go to a location just before first result. This is the location of the cursor on a newly returned scrollable result. | |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Release resources immediately. | |
| first | back to summary |
|---|---|
| public boolean first() Go to the first result.
| |
| get | back to summary |
|---|---|
| public R get() Get the current row of results.
| |
| getRowNumber | back to summary |
|---|---|
| public int getRowNumber() Get the current position in the results. The first position is number 0 (unlike JDBC).
| |
| isFirst | back to summary |
|---|---|
| public boolean isFirst() Is this the first result?
| |
| isLast | back to summary |
|---|---|
| public boolean isLast() Is this the last result?
| |
| last | back to summary |
|---|---|
| public boolean last() Go to the last result.
| |
| next | back to summary |
|---|---|
| public boolean next() Advance to the next result.
| |
| position | back to summary |
|---|---|
| public boolean position(int position) Moves the result cursor to the specified position.
| |
| previous | back to summary |
|---|---|
| public boolean previous() Retreat to the previous result.
| |
| scroll | back to summary |
|---|---|
| public boolean scroll(int positions) Scroll the specified number of positions from the current position.
| |
| setFetchSize | back to summary |
|---|---|
| public void setFetchSize(int fetchSize) Gives the JDBC driver a hint as to the number of rows that
should be fetched from the database when more rows are needed.
If
| |
| setRowNumber | back to summary |
|---|---|
| public boolean setRowNumber(int rowNumber) Set the current position in the result set. Can be numbered from the first result (positive number) or backward from the last result (negative number).
| |