Hitachi

Hitachi Advanced Database Application Development Guide


8.5.71 setFetchSize(int rows)

Organization of this subsection

(1) Function

This method specifies the fetch size (number of rows to be fetched) when the ResultSet object is retrieved.

(2) Format

public synchronized void setFetchSize(int rows) throws SQLException

(3) Arguments

int rows

Specifies the number of rows to be fetched, in the range from 0 to 65,535.

If 0 is specified, retrieval is performed based on the value of adb_clt_fetch_size in the system properties, user properties, or URL connection properties.

If this method is omitted, the JDBC driver uses the number of rows specified in the Statement object for retrieval. If no number of rows is specified in the Statement object, or this ResultSet object has not been created from a Statement object, the JDBC driver uses the value of the adb_clt_fetch_size property for retrieval.

(4) Return value

None.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases:

(6) Notes

For notes, see (6) Notes in 8.3.37 setFetchSize(int rows).