Scalable Database Server, HiRDB Version 8 UAP Development Guide

[Contents][Index][Back][Next]

17.7.31 setHiRDBCursorMode

(a) Function

Set whether or not objects of the ResultSet class are to be validated when HiRDB executes commit processing.

(b) Format
 
public void setHiRDBCursorMode ( boolean mode )
 
(c) Arguments

boolean mode
Specifies one of the following values:
true: Validate objects of the ResultSet class after commit processing. When true is specified, objects of the following classes also become valid after commit processing:
  • Statement class
  • PreparedStatement class
false: Invalidate objects of the ResultSet class after commit processing.
(d) Return value

None.

(e) Functional detail

Sets whether or not objects of the ResultSet class are to be validated when HiRDB executes commit processing. The default value if this method cannot be called is false.

If an invalidated ResultSet object executes an operation other than close method calling, this method throws an SQLException.

Executing this method is the same as setting the HIRDB_CURSOR item, which is shown in 17.2.2(1) URL syntax.

(f) Exceptions

None.

(g) Notes

See 17.2.2(1)(c) Notes about specification of HIRDB_CURSOR and STATEMENT_COMMIT_BEHAVIOR.