8.3.36 setFetchDirection(int direction)
- Organization of this subsection
(1) Function
This method specifies the fetch direction for a result set that is created from this Statement 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:
-
The Statement object is closed.
-
The Connection object that created the Statement object is closed.
-
A value other than ResultSet.FETCH_FORWARD was specified for direction.