8.5.68 previous()
- Organization of this subsection
(1) Function
This method moves the cursor to the immediately preceding row.
(2) Format
public synchronized boolean previous() throws SQLException
(3) Arguments
None.
(4) Return value
If the cursor position resulting from execution of this method is before the first row, the method returns false; otherwise, the method returns true.
(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 type of this ResultSet object is ResultSet.TYPE_FORWARD_ONLY.
-
The ResultSet object has become invalid due to transaction settlement.