Hitachi

Hitachi Advanced Database Application Development Guide


8.5.67 next()

Organization of this subsection

(1) Function

This method moves the cursor to the next row. If the current cursor position is before the first row, the method moves the cursor to the first row; if it is on the last row, the method moves the cursor to the location after the last row.

(2) Format

public synchronized boolean next() throws SQLException

(3) Arguments

None.

(4) Return value

If the cursor position resulting from execution of this method is before the first row or after the last row, the method returns false; otherwise, the method returns true.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases: