setFetchDirection(int direction)

Syntax:

void setFetchDirection(int direction)
                       throws SQLException

Description:

Gives the driver a hint as to the direction in which rows will be processed in ResultSet objects created using this Statement object. The default value is ResultSet.FETCH_FORWARD.

Parameters:

direction

the initial direction for processing rows

Throws:

SQLException - if a database access error occurs or the statement has been closed

SQLFeatureNotSupportedException - if direction is any value except ResultSet.FETCH_FORWARD

Reference:

For more information, reference JDBC documentation for: Statement.setFetchDirection(int)