Nonstop Database, HiRDB Version 9 UAP Development Guide
Sets whether or not the auto-commit facility is to be enabled if a transaction during an XA connection is not a distributed transaction.
public void setXALocalCommitMode ( boolean autoCommitMode ) throws SQLException
None.
Sets the auto-commit facility during an XA connection. The default value is false (the auto-commit facility is disabled). The table below shows the relationships between this method's specification values and the JDBC driver operations.
Specification value | Condition | JDBC driver operation |
---|---|---|
true | Auto-commit default during Connection object generation | Enables auto-commit. |
Transaction termination by the con.commit or con.rollback method | Accepts normally. | |
setAutoCommit(true) execution | Enables auto-commit. | |
setAutoCommit(false) execution | Disables auto-commit. | |
false (default) | Auto-commit default during Connection object generation | Disables auto-commit. |
Transaction termination by the con.commit or con.rollback method | SQLException | |
setAutoCommit(true) execution | SQLException | |
setAutoCommit(false) execution | Normal termination (the driver does nothing because auto-commit cannot be enabled) |
None.
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.