在这种情况下,您使用一个BAPI事务对象。
返回由事务分配器创建的基本事务对象。
Returns the underlying transaction object created by the transaction dispenser.
在下一个示例中,我们将了解如何创建BAPI事务对象。
In the next example, we'll look at how you create a BAPI transaction object.
callback函数获得一个事务对象,用来执行SQL。
The callback function gets a transaction object that it can use to execute SQL.
下表显示oleDB为事务对象定义的强制和可选接口。
The following table shows the mandatory and optional interfaces defined by OLE DB for a transaction object.
如果你的程序使用事务的话,你也得把事务对象附加给连接。
Also, if your application is using transactions, you must attach a transaction object to the connection.
如果出现了任何问题,我们将调用事务对象中的rollback方法。
If a problem occurs, we will call the rollback method on the transaction object.
事务对象定义数据源上的原子工作单元并确定这些工作单元如何相关。
The transaction object defines an atomic unit of work on a data source and determines how those units of work relate to each other.
我们还将向您介绍如何设置适配器和运行企业发现向导,以创建BAPI事务对象。
We'll also show you how to set up the adapter and run the enterprise discovery wizard to create a BAPI transaction object for you.
SQL分布式事务涉及的会话并不获取可以传递给另一个会话的事务对象,从而也不能将其显式登记在分布式事务中。
The sessions involved in Transact-SQL distributed transactions do not get a transaction object they can pass to another session for it to explicitly enlist in the distributed transaction.
根据事务上下文选择一个请求解析器,请求解析器对请求业务对象进行解析;这个对象的头包含一个控制对象,体包含一个事务对象。
A request parser is chosen based on the transaction context to parse out the request business object which contains a control object as the header and a transaction object as the body.
每次事务修改的对象数量越少就意味着会有更多数据库提交,正如4.5节所述每次提交都会带来磁盘相关的开销。
A smaller number of changed objects per transaction mean more commits to your database, each of which incurs some disk-related overhead as mentioned in Section 4.5.
通过将事务上下文作为线程的一部分进行传递,以允许多个合作对象参与单个事务。
Enables multiple collaborating objects to participate in a single transaction, by passing the transactional context as part of the thread.
这些操作可以包括发送一条查询来获取结果,更新远程数据,支持事务,操纵大型对象,绑定输入值,等等。
These operations can include sending a query to retrieve results, updating remote data, supporting transactions, manipulating large objects, binding input values, and more.
这可保证程序线程不再使用资源适配器对象,并且所有事务都已完成。
This guarantees that application threads are no longer using resource-adapter objects and that all transactions have completed.
客户端将使用这些对象在今后所有的事务中验证帐户。
These objects will be used with the client to authenticate with the account in all future transactions.
为了应对可能的这种情况,如果在此事务策略中使用对象关系映射(ORM)框架,则应确保使用了版本验证功能。
To deal with this possibility, make sure you use versioning if you are using an object-relational mapping (ORM) framework with this transaction strategy.
实体管理层负责实体管理,并确保容器内该对象的事务完整性。
The entity management layer is responsible for entity management and ensuring the transaction integrity of that object within the container.
只留下了没有被关系使用的对象事务代码。
This leaves the object's business code untouched by the concern code.
在事务最后提交之前,对象都处于“托管”状态。
Until the transaction is finally committed, the objects are in "managed" state.
例如,第一个短事务使用只读查询来具体化对象,这让您可以在不打开事务就显示对象。
For example, the first short transaction materializes objects using a read-only query, which lets you display the objects without leaving the transaction open.
使用OTS代替创建一个新对象事务协议遵循了现有标准,并使J2EE和CORBA能够互相兼容。
Using OTS instead of inventing a new object transaction protocol builds upon existing standards and opens the way for compatibility between J2EE and CORBA components.
将事务性语义告知面向对象的组件要求对TPM模型进行扩展—在这个模型中事务是按照事务性对象的调用方法定义的。
Imparting transactional semantics to object-oriented components required an extension of the TPM model, in which transactions are instead defined in terms of invoking methods on transactional objects.
当线程经过合作对象时,事务管理程序使用线程的事务上下文来执行所有的工作。
As the thread passes through the collaborating objects, the transaction manager USES the thread's transaction context to perform all work.
这些线程通常都是轻量级的,用于执行缓存清理和对象清理之类的事务。
They are traditionally lightweight and used for executing tasks such as cache cleanup and object cleanup.
除长期执行的事务以外,只有少数业务对象会受事务影响。
Only a few business objects are affected by most transactions, except for long-living transactions.
脏检查用于验证对象在长事务期间没有被修改。
Dirty checking is used to verify that an object has not been modified during a long transaction.
在整个事务处理过程中,作为事务上下文对象传递控制对象。
Control object, as a transaction context object, is passed through the whole transaction process from beginning to the end.
这是事务处理的主要陷阱之一:基于 ORM 的框架需要一个事务来触发对象缓存与数据库之间的同步。
This is one of the first major pitfalls of transaction processing: ORM-based frameworks require a transaction in order to trigger the synchronization between the object cache and the database.
当ctm中的事务提交或回滚时,与事务相关的对象所做的全部更改都一起被提交或取消。
When a transaction in a CTM commits or rolls back, all the changes made by the objects involved in the transaction are either committed or undone as a group.
应用推荐