摘要: 待整理AbstractPlatformTransactionManager public final TransactionStatus getTransaction(TransactionDefinition definition) throws TransactionException { Object transaction = doGetTransaction(); boolean debugEnabled = logger.isDebugEnabled(); if(definition == null) ... 阅读全文
posted @ 2013-11-29 14:26 helloworld~ 阅读(3251) 评论(0) 推荐(0) 编辑
摘要: [http://www.open-open.com/lib/view/open1350865116821.html]1. TransactionDefinition接口中定义五个隔离级别:ISOLATION_DEFAULT 这是一个PlatfromTransactionManager默认的隔离级别,使用数据库默认的事务隔离级别.另外四个与JDBC的隔离级别相对应;ISOLATION_READ_UNCOMMITTED 这是事务最低的隔离级别,它充许别外一个事务可以看到这个事务未提交的数据。这种隔离级别会产生脏读,不可重复读和幻像读。ISOLATION_READ_COMMITTED 保证一个事务修 阅读全文
posted @ 2013-11-29 13:50 helloworld~ 阅读(237) 评论(0) 推荐(0) 编辑
摘要: [http://developer.51cto.com/art/200906/129854.htm]Spring事务策略Spring事务策略,也就是spring事务管理的实现方式.它有一个统一的抽象是由实现下面这个接口完成的.org.springframework.transaction.PlatformTransactionManager此接口的内容如下:PublicinterfacePlatformTransactionManager()...{ TransactionStatuegetTransaction(TransactionDefinitiondefinition)throwsTr 阅读全文
posted @ 2013-11-29 10:56 helloworld~ 阅读(326) 评论(0) 推荐(0) 编辑