Freigeben über


setFetchDirection Method (SQLServerResultSet)

Gives a hint as to the direction in which the rows in this SQLServerResultSet object will be processed.

Hinweis

This method is not currently supported by the Microsoft SQL Server JDBC Driver. If you use this method, the JDBC driver remembers the setting, but currently does not act on it.

public void setFetchDirection(int direction)

Parameter

direction

An int that indicates the suggested fetch direction. Can be one of the following values:

ResultSet.FETCH_FORWARD

ResultSet.FETCH_REVERSE

ResultSet.FETCH_UNKNOWN

Ausnahmen

SQLServerException

Hinweise

This setFetchDirection method is specified by the setFetchDirection method in the java.sql.ResultSet interface.

The initial value of this method is determined by the SQLServerStatement object that produced this SQLServerResultSet object. The fetch direction can be changed at any time.

Hinweis

Using this method when the cursor type is forward-only has no effect.

Siehe auch

Referenz

SQLServerResultSet Class

Konzepte

SQLServerResultSet Methods
SQLServerResultSet Members