This feature enables applications to rollback a transaction to a predetermined marker.
该特性使应用程序能够将事务回滚到一个预先确定的标记。
When it tries to use the session to commit or rollback a transaction, an IllegalStateException will occur.
当它尝试使用该会话提交或回滚事务时,将发生IllegalStateException。
This would allow you to rollback a transaction, persist data, or perform any other cleanup functions you might need.
这将允许您回滚事务、持久化数据或执行您可能需要的任何其它清除功能。
One solution would be to have a small application that joins the open transaction branch within the engine that advises the engine to commit or rollback the open transaction.
一种解决方案是用一个小型应用程序连接引擎中打开的事务分支,并通知引擎提交或回滚这一打开的事务。
Two-phase commit gives the transaction manager power to ensure that all resources that participate in a transaction commit or rollback together.
二阶段提交让事务管理者有能力确保所有参与事务的资源都一起提交或回滚。
The transaction time includes the time at which an application's statement activity begins until a commit or rollback implicitly or explicitly ends the transaction.
事务时间包括从应用程序的声明活动开始,直到一条提交或回滚命令隐式或显式地结束事务为止。
A CICS program that issues a SYNCPOINT command (with or without the rollback option) cannot be subordinate to another transaction manager, and thus cannot be part of an extended or global transaction.
发出SYNCPOINT命令(带有或不带有回滚选项)的CICS程序不能从属于另一个事务管理器,因此它也不能成为扩展或全局事务的一部分。
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还不能采取纠正操作,因为事务已经被标记为回滚。
The business process also has a snippet component, which you can use to raise a fault and to demonstrate a global transaction rollback.
业务流程也有一个代码段组件,您可以用它来引发一个故障并演示一个全局事务回滚。
If the application is not prepared to send the commit of "Phase 2" again the transaction branch will be aborted by a heuristical rollback initiated by the engine.
如果应用程序没有准备重新发送“第 2阶段”的提交,该事务分支将被引擎所启动的试探性回滚中止。
Note that even in the case of a rollback, the callback function must do some cleanup, removing all the records that were part of the transaction from the named memory.
注意,即便是回滚情况,回调函数也必须执行一些清理:从已命名内存删除作为事务一部分的所有记录。
When you rollback to a savepoint set earlier in a transaction, IDS just rolls back all the operations logged by the transaction after the savepoint was set.
当回滚到事务中早先设置的保存点时,IDS将只回滚在设置保存点后由事务记录的所有操作。
Unfortunately, the effect of this characteristic is that a lower-level method that isn't the transaction owner might perform a rollback on exception.
遗憾的是,此特性的效果是,作为非事务拥有者的较低级方法可以对异常执行回滚。
Why does the commit or rollback of a transaction close the result set?
为何事务的提交或回滚关闭结果集?
Conversely, application exceptions under EJB 1.0 automatically caused a transaction rollback under certain circumstances.
反过来说,EJB 1.0下发生的应用程序异常在某种环境下会自动导致一个事务回滚。
Once you are in a transaction, you may use PDO: : commit or PDO: : rollBack to finish it, depending on the success of the code you run during the transaction.
在一个事务中,可以使用PDO:commit或PDO:rollBack来结束该事务,这取决于事务中运行的代码是否成功。
A transaction callback must be defined in the objectgrid.xml to receive transaction commit or rollback events and send it to the JPA layer.
在objectgrid.xml中必须定义事务的回调函数,这样就可以接收事务提交或回滚的事件,并将其发送到JPA层。
The domain class properly has a transaction attribute of MANDATORY because the client is starting the transaction, and the domain model (insertTrade()) is not responsible for rollback.
域类属性有一个事务属性MANDATORY,因为客户机正在启动事务,而域模型(insertTrade())不负责执行回滚。
Stateful components can be problematic in a web context because of managing cached state for example - many applications break when a rollback occurs because the state isn't tied to the transaction.
由于需要管理缓存着的状态,有状态的组件可能会在Web上下文中出现问题,比如,发生回滚时许多应用都会出问题,因为状态并没有和事务绑定起来。
This means that if the transaction ends with a rollback, the record is removed from the auditTable table.
这意味着如果事务最终回滚,记录将从audittable表中移除。
Hence, both actions need to be within a single transaction with a single outcome: either both actions occur (a commit outcome), or neither action occurs (a rollback outcome).
因此,两个动作需要在具有单个结果的单个事务内:两个动作都发生(提交结果),或两个动作都不发生(回滚结果)。
Prior to the two-phase commit process, all work performed during the transaction is said to be in-flight, and failure during this period will lead to a rollback of work.
在两阶段提交进程之前,事务过程中执行的所有工作都被认为是“在处理中”,并且在此期间如果失败将会导致工作回滚。
This lets you set, rollback, and release savepoints in a transaction.
它允许您在事务中设置、回滚和释放保存点。
In the case of an error, the transaction logic can specify that the transaction rollback to a savepoint.
在发生错误的情况下,事务逻辑可以指定该事务回滚到某个保存点。
The transaction log is stored as a sequential disk file (or sometimes in a raw partition) and will generally only be written to, not read from, except in the case of rollback or recovery.
事务日志存储为连续的磁盘文件(有时存储在原始分区中),并且一般只是用于写入而不用于读取,回滚或恢复的情况例外。
Below you have the example how to rollback the transaction branch for a database.
下面的例子展示了如何为数据库回滚事务分支。
First, if a method did not start a transaction, it has no business managing that transaction (for example, marking it for rollback).
首先,如果某个方法没有启动事务,那么它就不需要管理事务(例如,将其标记为回滚)。
So COMMIT and ROLLBACK statements are important building blocks of a transaction implementation.
因此COMMIT和rollback语句是事务实现的重要构建块。
This option specifies whether or not a CICS transaction abend should trigger an automatic rollback of the RRS unit of Recovery and force a back-out of all updates made within the CICS unit of work.
此选项可以指定CICS事务异常终止是否应触发恢复的RRS单元的自动回滚,并强制执行在CICS工作单元中所进行的所有更新的回退。
This illustrates the use of savepoints in a scenario where you would want to rollback just a small part of a transaction.
这演示了在您希望仅回滚事务的一小部分的保存点。
应用推荐