8.5.61 isAfterLast()
- Organization of this subsection
(1) Function
This method acquires a value indicating whether the cursor is located after the last row in the ResultSet object.
(2) Format
public synchronized boolean isAfterLast() throws SQLException
(3) Arguments
None.
(4) Return value
If the cursor is located after the last row, the method returns true; if not, or the result set contains no rows, the method returns false.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
This ResultSet object is closed.
This includes the case where the ResultSet object was closed because the Statement object that created this ResultSet object was closed.
-
The Connection used to create the Statement object that created this ResultSet object has been closed.
-
The ResultSet object has become invalid due to transaction settlement.
-
A database access error occurs.