
ResultSet
108
|
JDBC Pocket Reference
static int FETCH_FORWARD
This result set’s rows will be read in a forward direction, first-
to-last, when calling
next( ).
static int FETCH_REVERSE
This result set’s rows will be read in a reverse direction, last-
to-first, when calling
next( ).
static int FETCH_UNKNOWN
This result set’s fetch direction is unknown.
static int HOLD_CURSORS_OVER_COMMIT
Do not close result set objects when the Connection’s commit( )
method is called.
static int TYPE_FORWARD_ONLY
This result set’s cursor can only move forward.
static int TYPE_SCROLL_INSENSITIVE
This result set’s cursor is scrollable, but it does not detect
changes made to its underlying database data by other users.
static int TYPE_SCROLL_SENSITIVE
This result set’s cursor is scrollable, and it does, at some level,
detect changes made to its underlying database data by other
users.
Methods
boolean absolute(int row)
Moves the cursor to the specified row. (Java 1.2)
void afterLast( )
Moves the cursor to just after the last row. (Java 1.2)
void beforeFirst( )
Moves the cursor to just before the first row. (Java 1.2)
void cancelRowUpdates( )
Cancels updates made to the current row. (Java 1.2)
void clearWarnings( )
Clears any SQL warnings.
void close( )
Closes this result set.
void deleteRow( )
Deletes the current row. (Java 1.2)