
ResultSet
The JDBC API
|
113
void moveToInsertRow( )
Moves the cursor to the “insert row,” a scratch pad row used
to formulate a new row. (Java 1.2)
boolean next( )
Moves the cursor to the next row.
boolean previous( )
Moves the cursor to the previous row. (Java 1.2)
void refreshRow( )
Refreshes the current row with its current values in the data-
base. (Java 1.2)
boolean relative(int rows)
Returns true if the cursor is successfully moved the relative
number of rows forward for a positive value or backward for
negative value. (Java 1.2)
boolean rowDeleted( )
Returns true if the current row has been deleted in the data-
base. (Java 1.2)
boolean rowInserted( )
Returns true if the current row has been inserted into the
database. (Java 1.2)
boolean rowUpdated( )
Returns true if the current row has been updated to the data-
base. (Java 1.2)
void setFetchDirection(int direction)
Sets this result set’s fetch direction. Use one of the following
constants (Java 1.2):
FETCH_FORWARD
FETCH_REVERSE
FETCH_UNKNOWN
void setFetchSize(int rows)
Sets this result set’s fetch size in rows. (Java 1.2)
NOTE
The following mutators or updateXXX( ) methods that
have a
columnIndex or columnName parameter all update a
result set’s column value for the specified column index
(starting from 1, incrementing left to right), or column
name, with the specified value.