Skip to Main Content
JDBC Pocket Reference
book

JDBC Pocket Reference

by Donald Bales
January 2003
Intermediate to advanced content levelIntermediate to advanced
176 pages
5h 3m
English
O'Reilly Media, Inc.
Content preview from JDBC Pocket Reference
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.
ResultSet
114
|
JDBC Pocket Reference
void updateArray(int columnIndex, Array x)
void updateArray(String ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro Couchbase Server, Second Edition

Pro Couchbase Server, Second Edition

David Ostrovsky, Mohammed Haji, Yaniv Rodenski
Pro Couchbase Server

Pro Couchbase Server

David Ostrovsky, Yaniv Rodenski

Publisher Resources

ISBN: 9780596528713