If a problem occurs, we will call the rollback method on the transaction object.
如果出现了任何问题,我们将调用事务对象中的rollback方法。
It is therefore recommended to use transacted sessions and code explicit commit and rollback method calls when client mode is (or might be) used.
因此,当使用(或可能使用)客户机模式时,建议使用事务处理会话和代码显式commit和rollback方法调用。
In this case, you must invoke the commit method on the Connection object if all is well; otherwise, invoke the rollback method if an exception occurs.
在本例中,如果一切正常,您必须调用Connection对象上的commit方法;否则,如果出现异常,则调用rollback方法。
Once all the updates are performed you can invoke the commit method to commit the transaction, or the rollback method to roll back the transaction. Listing 5 illustrates this technique.
执行了所有更新之后,您可以调用commit方法来提交事务,或者调用rollback方法来回滚事务。
Once all the updates are performed you can invoke the commit method to commit the transaction, or the rollback method to roll back the transaction. Listing 5 illustrates this technique.
执行了所有更新之后,您可以调用commit方法来提交事务,或者调用rollback方法来回滚事务。
应用推荐