◎筱米加步枪◎.Blog

Happy coding

Spring事务属性说明

筱米加步枪 posted @ 2010年8月31日 06:11 in [ 开源框架 ] with tags Spring 事务 , 2732 阅读

Spring事务属性配置属性说明如下:

PROPAGATION_REQUIRED

【支持当前事务,如果当前没有事务,就新建一个事务。(常用)】


PROPAGATION_SUPPORTS

【支持当前事务,如果当前没有事务,就以非事务方式执行】


PROPAGATION_MANDATORY

【支持当前事务,如果当前没有事务,就抛出异常】


PROPAGATION_REQUIRES_NEW

【新建事务,如果当前存在事务,把当前事务挂起】


PROPAGATION_NOT_SUPPORTED

【以非事务方式执行操作,如果当前存在事务,就把当前事务挂起】


PROPAGATION_NEVER   

【以非事务方式执行,如果当前存在事务,则抛出异常】


PROPAGATION_NESTED 

【如果当前存在事务,则在嵌套事务内执行。如果当前没有事务,则进行与PROPAGATION_REQUIRED类似的操作】


-Exception表示有Exception抛出时,事务回滚。-代表回滚+就代表提交

readonly 就是read only, 设置操作权限为只读,一般用于查询的方法,优化作用

lakshmi vilas bank n 说:
2022年10月02日 21:15

LVB NEFT/RTGS Form PDF Download-: Lakshmi Vilas Bank Limited- LVB is an Indian private sector bank established on 3rd November 1926. LVB NEFT/RTGS Form PDF Download-: Lakshmi Vilas Bank Limited- LVB is an Indian private sector bank established on 3rd November 1926. LAKSHMI VILAS BANK NEFT RTGS FORM. lakshmi vilas bank neft form Currently all banks are using NEFT / RTGS facility to transfer funds between one bank account. Download Lakshmi Vilas Bank Deposit Slip, RTGS Form / NEFT Form. These forms are used for depositing cash & cheques in Bank.LAKSHMI VILAS BANK NEFT RTGS FORM. Currently all banks are using NEFT / RTGS facility to transfer funds between one bank account. Download Lakshmi Vilas Bank Deposit Slip, RTGS Form / NEFT Form. These forms are used for depositing cash & cheques in Bank.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter