We'll focus on programmatic transaction demarcation.
我们将侧重于编程式事务界定。
The example code in Listing 1 demonstrates a bean-managed transaction (sometimes called a programmatic transaction.)
清单1中的示例代码演示了bean 管理的事务(有时也称为 编程(programmatic)事务)。
When the transactional requirements of the application are not very complex, programmatic transaction demarcation can be cumbersome and error-prone.
当应用程序的事务需求并不非常复杂时,编程方式的事务划分可能非常繁琐和容易出错。
Specifically, you'll learn about the JCA's two transaction demarcation techniques, distributed transaction demarcation and programmatic transaction demarcation.
具体地说,您将学习JCA的两个事务界定技术:分布式事务界定和程序性事务界定。
No other methods, classes, or components should contain transaction logic (including transaction annotations, programmatic transaction logic, and rollback logic).
其他方法、类或组件都不应包含事务逻辑(包括事务注释、编程序事务逻辑和回滚逻辑)。
With programmatic transaction management, developers work with the Spring transaction abstraction, which can run over any underlying transaction infrastructure.
使用编程序事务管理,开发者直接使用Spring事务抽象,这个抽象可以使用在任何底层事务基础之上。
If they are not, then you will most likely need to use the Programmatic Transaction model.
如果不是这样的话,那么很可能需要使用编程序事务(Programmatic Transaction)模型。
The Programmatic transaction model gets its name from the fact that the developer is responsible for managing the transaction.
Programmatic Transaction模型的名称来自这样一个事实:开发人负责管理事务。
Notice that this annotation is at the class level (not the method level), indicating that you clearly cannot combine the Declarative and Programmatic transaction models in the same class.
注意,这个注释是类级的(而不是方法级的),这表示您不能在相同的类中结合Declarative和Programmatic事务模型。
Notice that this annotation is at the class level (not the method level), indicating that you clearly cannot combine the Declarative and Programmatic transaction models in the same class.
注意,这个注释是类级的(而不是方法级的),这表示您不能在相同的类中结合Declarative和Programmatic事务模型。
应用推荐