基于Hibernate锁机制的事务管理方案研究与实现  

Research and implementation of transaction management based on hibernate locking mechanism

在线阅读下载全文

作  者:汤伟[1] 程家兴[1] 顾婷婷[1] 胡必云[1] 

机构地区:[1]安徽大学计算智能与信号处理教育部重点实验室,安徽合肥230039

出  处:《计算机工程与设计》2007年第18期4491-4493,共3页Computer Engineering and Design

摘  要:在基于Java的企业应用开发过程中,数据持久层的并发设计往往是一个棘手的问题。在分析数据库事务机制理论和介绍开源O-R映射项目Hibernate架构的基础上,对Hibernate提供的两种事务锁机制的实现方法进行了比较,提出了一种基于Hibernate乐观锁机制的事务管理方法,并以H市政务审批系统建设为例,证明了该方法可以很好地满足多层B/S结构下数据库事务的并发性要求。In the enterprise application development under the Java environment, the concurrence of data persistence layer is generally a gordian knot. By analyzing the theories of the database transaction mechanism and introducing the hibernate structure in the open-source O-R mapping project, the two transaction lock mechanism provided by hibernate are compared, and a new method of transaction man- agement based on optimistic locking mechanism is put forward. This method has been applied in the examining and approving system of government affair in city H. The application shows that it is available to meet the concurrence demand of database transaction in the multilayer B/S structure.

关 键 词:数据库 事务机制 乐观锁 对象-关系映射 电子政务 

分 类 号:TP393.09[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象