摘要
在经典的J2EE四层体系结构的基础上增加数据持久层,提出了基于J2EE五层体系结构的Web开发框架;分析了基于Struts框架的J2EE架构中实现对象持久性的局限性,从中分离出对象持久层,并将Hibernate这个面向对象的轻量级对象持久性技术集成到该架构中;应用DAO设计模式在业务逻辑层与持久层之间设计了多源数据访问组件,抽象和封装了对不同数据源的数据访问操作,实现对不同类型、结构、环境、用法的异构数据库的统一访问。
This paper put forward J2EE 5-tier architecture by increasing data persistence tier based on classical J2EE 4-tier architecture. Analyzed the localization in implementing object persistence of the J2EE architecture based" on Struts and divided the object persistence tier from it, then integrated Hibernate, a lightweight object oriented persistence technology, into the architecture, so that the advantages of each could be shared by all. A multi-source data accessing module was designed by applying the DAO design pattern between business tier and data persistence tier in this architecture to implement identically access various isomerous database with different types, structure, environment and usage.
出处
《计算机应用研究》
CSCD
北大核心
2008年第5期1429-1431,共3页
Application Research of Computers
基金
中国成人教育协会"十一五"成人教育科研规划资助项目(07B045Y)