节点文献
基于Hibernate锁机制的事务管理方案研究与实现
Research and implementation of transaction management based on hibernate locking mechanism
【摘要】 在基于Java的企业应用开发过程中,数据持久层的并发设计往往是一个棘手的问题。在分析数据库事务机制理论和介绍开源O-R映射项目Hibernate架构的基础上,对Hibernate提供的两种事务锁机制的实现方法进行了比较,提出了一种基于Hibernate乐观锁机制的事务管理方法,并以H市政务审批系统建设为例,证明了该方法可以很好地满足多层B/S结构下数据库事务的并发性要求。
【Abstract】 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.
【Key words】 database; transaction management; optimistic locking; object/relational mappings; E-government;
- 【文献出处】 计算机工程与设计 ,Computer Engineering and Design , 编辑部邮箱 ,2007年18期
- 【分类号】TP311.52
- 【被引频次】4
- 【下载频次】127