Spring 事务传播属性
2009-07-08 15:48
176 查看
Propagation behavior | What it means |
PROPAGATION_MANDATORY | Indicates that the method must run within a transaction. If no existing transaction is in progress, an exception will be thrown. |
PROPAGATION_NESTED | Indicates that the method should be run within a nested transaction if an existing transaction is in progress. The nested transaction can be committed and rolled back individually from the enclosing transaction. If no enclosing transaction exists, behaves like PROPAGATION_REQUIRED. Vendor support for this propagation behavior is spotty at best. Consult the documentation for your resource manager to determine if nested transactions are supported. |
PROPAGATION_NEVER | Indicates that the current method should not run within a transactional context. If there is an existing transaction in progress, an exception will be thrown. |
PROPAGATION_NOT_SUPPORTED | Indicates that the method should not run within a transaction.If an existing transaction is in progress, it will be suspended for the duration of the method. If using JTATransactionManager, access to TransactionManager is required. |
PROPAGATION_REQUIRED | Indicates that the current method must run within a transaction.If an existing transaction is in progress, the method will run within that transaction. Otherwise, a new transaction will be started. |
PROPAGATION_REQUIRES_NEW | Indicates that the current method must run within its own transaction. A new transaction is started and if an existing transaction is in progress, it will be suspended for the duration of the method. If using JTATransactionManager,access to TransactionManager is required. |
PROPAGATION_SUPPORTS | Indicates that the current method does not require a transactional context, but may run within a transaction if one is already in progress. |
相关文章推荐
- Spring中事务的传播属性详解
- Spring中事务的传播属性详解
- spring的事务传播属性与数据库的隔离级别
- spring事务传播属性和事务隔离级别
- 事务457——spring事务注解Transactional的propagation传播属性使用
- spring事务传播属性与隔离级别
- (转)Spring 事务传播属性
- 事务457——spring事务注解Transactional的propagation传播属性使用
- spring事务传播属性和隔离级别
- Spring事务配置的五种方式和spring里面事务的传播属性和事务隔离级别
- Spring中的事务传播属性详解
- spring事务传播属性与隔离级别
- Spring事务传播属性和隔离级别
- Spring 第12天,事务传播属性和 隔离级别
- Spring事务配置的五种方式和spring里面事务的传播属性和事务隔离级别
- Spring事务配置的五种方式和spring里面事务的传播属性和事务隔离级别
- Spring事务配置的五种方式和spring里面事务的传播属性和事务隔离级别
- 关于Spring 事务管理传播属性的配置及作用-嵌套事务
- spring事务-说说Propagation及其实现原理(传播属性示例分析)
- spring 事务传播属性