8.5.70 setFetchDirection(int direction)
- Organization of this subsection
(1) Function
This method specifies the fetch direction for the ResultSet object.
(2) Format
public synchronized void setFetchDirection(int direction) throws SQLException
(3) Arguments
- int direction
-
Specifies the fetch direction.
Only ResultSet.FETCH_FORWARD can be specified.
(4) Return value
None.
(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.
-
The value specified for direction is not ResultSet.FETCH_FORWARD.