Hitachi

Hitachi Advanced Database Application Development Guide


8.6.154 supportsResultSetHoldability(int holdability)

Organization of this subsection

(1) Function

This method acquires a value indicating whether holdability is supported for the specified ResultSet object.

(2) Format

public synchronized boolean supportsResultSetHoldability(int holdability) throws SQLException

(3) Arguments

int holdability

Specifies one of the following values:

  • ResultSet.HOLD_CURSORS_OVER_COMMIT

    The ResultSet object is not closed when the Connection.commit method is called.

  • ResultSet.CLOSE_CURSORS_AT_COMMIT

    The ResultSet object is closed when the Connection.commit method is called.

(4) Return value

boolean type:

true: Supported

false: Not supported

If ResultSet.HOLD_CURSORS_OVER_COMMIT is specified for holdability, the method returns true; otherwise, the method returns false.

(5) Exceptions

If this Connection object is closed before this method is executed, the JDBC driver throws an SQLException.