Hitachi

Hitachi Advanced Database Application Development Guide


8.3.38 setLargeMaxRows(long max)

Organization of this subsection

(1) Function

This method sets the maximum number of rows that can be stored in a ResultSet object created from this Statement object, as a long value. Any rows in excess of this value are not stored in the ResultSet object. You will not be notified that these rows have not been stored.

The setting you specify in this method does not apply to ResultSet objects that have already been created.

(2) Format

public synchronized void setLargeMaxRows(long max) throws SQLException

(3) Arguments

long max

Specifies the maximum number of rows that can be stored.

If you specify 0, no maximum is set. If the result set type is ResultSet.TYPE_SCROLL_INSENSITIVE, the maximum number of rows that can be stored is set to Integer.MAX_VALUE if you specify 0.

If you do not execute this method, HADB operates as if 0 were specified (no maximum is set).

(4) Return value

None.

(5) Exceptions

For details about exceptions, see (5) Exceptions in 8.3.40 setMaxRows(int max).