Hitachi

Hitachi Advanced Database Application Development Guide


8.5.3 afterLast()

Organization of this subsection

(1) Function

This method moves the cursor to the location immediately following the last row in the ResultSet object. The following table shows the location to which the cursor is moved when this method is executed.

Table 8‒16: Location to which the cursor is moved when the afterLast method is executed

Number of rows in result set#

Current cursor position

Destination of cursor

0

Before the first row

Remains before the first row.

n

Before the first row

After the last row

1 ≤ current row ≤ n

After the last row

After the last row

Remains after the last row.

#

If the actual number of rows is greater than the setMaxRows value, the setMaxRows value takes effect.

If the actual number of rows is greater than the setLargeMaxRows value, the setLargeMaxRows value takes effect.

(2) Format

public synchronized void afterLast() throws SQLException

(3) Arguments

None.

(4) Return value

None.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases: