Scalable Database Server, HiRDB Version 8 UAP Development Guide

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

17.7.41 setStatementCommitBehavior

(a) Function

Sets whether or not statement objects are to remain valid after a transaction is committed. Here, statement objects refer to the following classes:

(b) Format
 
public void setStatementCommitBehavior ( boolean mode ) throws SQLException
 
(c) Arguments

boolean mode
Specifies whether statement objects are to be valid both before and after a transaction is terminated by commit processing:
true: Validate statement objects after a transaction is completed.
false: Invalidate statement objects after a transaction is completed.
(d) Functional detail

Sets whether or not statement objects are to remain valid after a transaction is committed. The default when this method is not called is true.

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

(e) Exceptions

None.

(f) Notes

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