Hitachi

Hitachi Advanced Database Application Development Guide


8.5.8 first()

Organization of this subsection

(1) Function

This method moves the cursor to the first row in the ResultSet object.

(2) Format

public synchronized boolean first() throws SQLException

(3) Arguments

None.

(4) Return value

If the number of rows in the result set is 0, the method returns true; if not, the method returns false.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases: