Spring的事务属性意义------transactionAttributes
来源:互联网 发布:手机淘宝联盟下载 编辑:程序博客网 时间:2024/05/01 21:10
原文转自:http://yanglei008.javaeye.com/blog/214874
PROPAGATION_REQUIRED--支持当前事务,如果当前没有事务,就新建一个事务。这是最常见的选择。
PROPAGATION_SUPPORTS--支持当前事务,如果当前没有事务,就以非事务方式执行。
PROPAGATION_MANDATORY--支持当前事务,如果当前没有事务,就抛出异常。
PROPAGATION_REQUIRES_NEW--新建事务,如果当前存在事务,把当前事务挂起。
PROPAGATION_NOT_SUPPORTED--以非事务方式执行操作,如果当前存在事务,就把当前事务挂起。
PROPAGATION_NEVER--以非事务方式执行,如果当前存在事务,则抛出异常。
PROPAGATION_NESTED--如果当前存在事务,则在嵌套事务内执行。如果当前没有事务,则进行与PROPAGATION_REQUIRED类似的操作。
如果出现
- <prop key="myMethod">PROPAGATION_REQUIRED,readOnly,-Exception </prop>
其中:
-Exception表示有Exception抛出时,事务回滚. -代表回滚+就代表提交
readonly 就是read only, 设置操作权限为只读,一般用于查询的方法,优化作用.
- Spring的事务属性意义------transactionAttributes
- Spring的事务属性意义------transactionAttributes
- Spring事务TransactionProxyFactoryBean属性-transactionAttributes的意义
- Spring事务TransactionProxyFactoryBean属性-transactionAttributes的意义!
- Spring配置中transactionAttributes的意义
- Spring配置中transactionAttributes的意义
- Spring配置中transactionAttributes的意义
- 关于Spring配置中transactionAttributes的意义
- 关于Spring配置中transactionAttributes的意义
- Spring事务-transactionAttributes
- Spring 声明事务中transactionAttributes属性 + - Exception 实现逻辑
- Spring 声明事务中transactionAttributes属性 + - Exception 实现逻辑
- Spring配置事务中的 transactionAttributes 各属性含义
- Spring配置事务中的 transactionAttributes 各属性含义
- Spring配置事务中的 transactionAttributes 各属性含义
- Spring配置事务中的 transactionAttributes 各属性含义
- Spring 声明事务中transactionAttributes属性 + - Exception 实现逻辑
- Spring的transactionAttributes
- 基于视图的应用开发--关键函数的实现
- MapX系列-- 使用LayerInfo object 在map中添加已有的矢量图层
- VS2010 学习笔记 TDD (3) 从失败到成功(三)
- 面试题
- 第二章 PL/SQL基础
- Spring的事务属性意义------transactionAttributes
- Symbian 应用程序框架浅析
- ASP 生成文件的两种方法
- Symbian编程总结-图形图像篇-使用双缓存进行图形的绘制
- 《重庆晚报》网络神兽古鸽迁移记
- hibernate3.2打开游标过多:出现ORA-01000: maximum open cursors exceeded错误
- dll:显式链接与隐式链接
- 停电数日
- linux 重新启动网络服务命令