The scope ends when the transaction commits or rolls back.
这个范围结束于提交或回滚事务时。
An application program defines the start and end of a global transaction, accesses resources within transaction boundaries, and usually decides whether to commit or roll back each transaction.
应用程序对全局事务的开始和结束进行了定义,在事务界限内获取资源,并且通常决定是否提交或回滚每个事务。
Unfortunately, it is sometimes desirable to have more control over a transaction than simply rolling back every change in the current transaction.
可惜的是,有时候需要的是对事务多一点的控制,而不是在当前的事务中简单地对每一个改变进行回滚。
If the transaction in one resource commits successfully but another fails and must roll back, the first transaction can no longer be rolled back, so the state of the application becomes inconsistent.
如果一个资源中的事务成功提交,而另一个资源中的事务提交失败且必须回滚,那么第一个事务将不再回滚,这将使应用程序的状态不一致。
If something went wrong and the transaction rolled back, the message was placed back on the destination for reprocessing.
如果有什么事情出错,事务将回滚,那么消息将被重新放在目标上,再次进行处理。
When a transaction rolls back to a savepoint, all non-hold cursors opened after that savepoint are closed.
当一个事务回滚到某个保存点时,在保存点之后打开的所有未被占用的指针将被关闭。
If a business process fails, the global transaction is rolled back, including any database interaction the adapter has exercised during the transaction.
如果某个业务流程失败,则会回滚该全局事务,包括适配器已在该事务期间执行的任何数据库交互。
If either the database update or the MQ enqueuing fails, then the entire transaction should roll back.
无论是数据库更新或是MQ 队列产生错误,整个事务都应被取消。
At that time, the transaction is rolled back until the last asynchronous point.
此时,事务回滚到前一个异步点。
If there is an error, the program rolls back the transaction to the neworder savepoint.
如果出现错误的话,程序将把事务回滚到neworder保存点。
Then, roll back all the transaction IDs that are in the "prepared" phase
然后回滚“准备”阶段中的所有事务ID
A transaction lock conflict could either lead to rolling back a transaction (sqlcode -911), or to waiting indefinitely for the lock.
事务锁冲突可以导致事务回滚(sqlcode - 911),或者导致不确定地等待锁。
This means that, if the failed flag has been set because a message has not been received, we can roll back the transaction and return all of the other messages in the group back to the queue.
这意味着,如果由于尚未接收到某条消息而已经设置了failed标志,则可以回滚事务,并将组中的所有其他消息返回给队列。
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方法来回滚事务。
If the code performing the actions decides not to commit or cannot commit successfully, then it must roll back the transaction to undo the actions.
如果代码执行的操作决定不进行提交或者不能成功提交,那么它必须回滚该事务以取消这些操作。
Compare this to a broken connection in bindings mode that is detected almost immediately by the queue manager, which then rolls back the transaction, typically within a few milliseconds.
请将这与绑定模式下的断开连接做一下比较,后者几乎由队列管理器立即检测,然后回滚事务,通常是在几毫秒之内。
The transaction is rolled back in that case.
在那种情况下,事务进行了回滚。
For demonstration purposes, the transfer operation is modified to roll back the transaction whenever the transfer amount is an even number.
出于演示的目的,我们将转帐操作修改为每当转帐金额是偶数时就回滚事务。
Importantly, this transaction context flows back to the application.
更重要地,该事务上下文流回到应用程序。
More important, when should the transaction roll back the work?
更重要的是,事务应何时回滚工作?
Either commit or roll back your transaction before resubmitting the request.
在重新提交请求之前要提交或回滚事务。
Only the transaction owner can roll back the transaction.
只有事务所有者才能回滚事务。
If the flush fails for any database, the entire transaction is rolled back.
如果清仓对于所有数据库均失败,那么整个事务就会被回滚。
This causes the transaction to complete (commit or roll back) faster than in the API Layer transaction strategy.
其结果是,事务会比在api层事务策略中更快地完成(提交或回滚)。
The only methods in the entire application architecture that start, commit, and roll back a transaction are public methods contained in API layer's domain classes.
整个应用程序架构中用于启动、提交和回滚事务的惟一方法就是api层的域类中包含的公共方法。
If the client's transaction eventually rolls back, then the event will not be emitted.
如果客户端的事务最后回滚了,那么事件将不会被发送。
The developer must specify where and when to roll back a transaction when a checked exception occurs.
开发人员必须指定出现异常时在何处以及何时回滚事务。
In this case, the RM generally does most of the work to commit or roll back the transaction.
在这种情况下,RM通常执行提交或回滚事务所需的大部分工作。
Not only will Client a receive an exception if it tries to roll back the transaction, but Client a cannot take corrective action because the transaction has already been marked for rollback.
客户机a在尝试回滚事务时,不仅会收到一个异常,而且客户机a还不能采取纠正操作,因为事务已经被标记为回滚。
When an exception happens, the whole workflow fails, and the transaction rolls back.
当发生异常时,整个工作流失败,事务回滚。
应用推荐