A scrollable ResultSet object has a set of specific methods for moving cursors.
Method | Semantics |
first() | Moves to the first record |
last() | Moves to the last record |
next() | Moves to the next record |
previous() | Moves to the previous record |
beforeFirst() | Moves to immediately before the first record |
afterLast() | Moves to immediately after the last record |
absolute(int) | Moves to an absolute row number, and takes a positive or negative argument |
relative(int) | Moves backward or forward a specified number of rows, and takes a positive or negative argument |