Hitachi

Hitachi Advanced Database Application Development Guide


8.5.69 relative(int rows)

Organization of this subsection

(1) Function

This method moves the cursor.

(2) Format

public synchronized boolean relative(int rows) throws SQLException

(3) Arguments

int rows

Specifies the number of rows (from the current row) by which the cursor is to be moved.

If a positive value is specified, the cursor moves forward. If a negative value is specified, the cursor moves backwards.

(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: