8.3.28 getResultSetType()
- Organization of this subsection
(1) Function
This method acquires the result set type of a ResultSet object that is created from this Statement object.
(2) Format
public synchronized int getResultSetType() throws SQLException
(3) Arguments
None.
(4) Return value
This method returns ResultSet.TYPE_FORWARD_ONLY or ResultSet.TYPE_SCROLL_INSENSITIVE.
- ResultSet.TYPE_FORWARD_ONLY
-
The only direction the cursor can move is forward.
- ResultSet.TYPE_SCROLL_INSENSITIVE
-
The cursor can be scrolled, but changes to the underlying values are not reflected in the result set.
(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.