【SQL开源代码栏目提醒】:网学会员为广大网友收集整理了,基于J2EE平台的大型网络管理系统数据持久层优化设计——Hibernate替代Entity Bean - 硕士论文,希望对大家有所帮助!
东南大学 硕士学位论文基于J2EE平台的大型网络管理系统数据持久层优化设计 ——Hibernate替代Entity Bean 级别:硕士 专业:
软件工程 指导教师:吴介一王志欣 20050701 摘要 数据持久层是企业开发中很棘手的一个问题,一个企业数据持久化解决方案必须提供迅速的客户机事务。
在J2EE中对数据的持久化可以采用不同的技术,Hibernate作为一种新的轻量级的ORM框架,它可以替代Entity bean实现对数据的持久化,而且结合DAO模式,Hibernate可以设计出相对独立的数据持久层,专注于数据持久化逻辑的实现,实现了数据访问逻辑和数据资源的松耦合。
Hibernate还减小了项目开发的复杂性,它符合Java规范的关系数据库的持久化使得项目的可维护行和可扩展性也得到了很大的提高。
本文首先介绍了两种在J2EE架构中数据持久层的设计方法,即EJB 2.X规范的CMP以及Hibernate ORM框架。
接着介绍了基于EJB 2.X规范的网管系统对数据的持久化的实现,着重叙述了CMP在此架构中的实现以及使用CMP的一些优缺点。
接着介绍了HibemateORM框架的技术原理。
针对在此大型网络管理系统中使用CMP实现数据持久化所面临的种种弊端,提出了一种新的架构去代替EJB 2.X的cMP,即采用轻量级的Hibernate ORM的框架,实现了网管系统中的数据持久层的优化。
关键词:网管系统,数据持久层,DAO模式, CMP,Entity bean,Hibernate,ORM Abstarct Data permanent layer iS a difhcult issue in the enterprises development.A prompt clienttransaction service iS a necessary in solving an enterprise’S persistent data.In J2EE.there are manydifferent technologies to solve this problem.As a new and simple ORM frame,hibernate cansubstitute“entity bean’’.Combine with DAO frame.hibernate Call draw out a comparativeindependent data persistence layer.It emphasizes on achieving the persistence layer of data,andachieves such a soft coupling between data access logic and data resource.At the same time,hibernate Call minish the complexity ofthe development ofprojects.It accords with Java’S criterionin persistence of relalcionaI database.Just start from this point,hibernate can also make the projectsmore maintainable and expandable. Firstly it elicits two kinds of metllods in designing data persistence layer in J2EE:(1、CMPunder EJB 2.X frame,(2)Hibernate ORM frarne.About(1),it in仃oduces the implement of datapersistence layer using in血e network management system based on EJB 2.X.In tllis segment.itemphasizes on the process of CMP’S implement under this frame.About f21,it introduces thetechnological theory firstly.Aim at all kinds of advantages in using CMP to access data persistencein the big network management system.it puts forward a new