节点文献

数据持久化模型研究及数字化校园中的实现

The Research and Realization of Data Persistence Model in Digital Campus

【作者】 毕好昌

【导师】 李心科; 刘长征;

【作者基本信息】 合肥工业大学 , 计算机应用技术, 2008, 硕士

【摘要】 数据对象持久化是当前企业应用的研究热点。数据持久层负责查询、保存、更新和删除存储在数据库中的数据等。目前绝大多数数据库都是关系型数据库,而设计和开发往往又是面向对象的方式,为了提高数据管理的效率,持久层的方案是整个系统的关键。本文对数据对象持久化理论的研究和应用现状进行了广泛了解和深入分析,以数字化校园为背景,对数据对象持久化作了以下一些探索和研究。1、对数据对象持久化的基础理论进行了综合分析,阐述了数据持久化的特征以及实现数据对象持久化的基本要求。2、对当前多种常用的数据对象持久化模型进行了深入分析,并结合Hibernate技术,构建了基于Spring+Struts+Hibernate的架构模型。它与以往模型不同点在于,用Spring来搭建整个框架;采用Bean的形式来管理Struts的控制器;采用Bean的形式来管理系统的业务对象;采用Bean的形式来管理模型层,与持久化层相连接进行数据库操作。视图层和控制器层都是通过Struts框架来实现的,模型层实际上又可细分为数据访问层(DAO)和数据服务层(Manager)。使用Hibernate提供强大的持久化操作来实现持久化层。整个系统各层次之间的依赖关系的原则应该是自顶向下的,即上层可以依赖下层,而下层应该尽量减少对下层的依赖。同时层次之间的交互应该减少对实现的依赖,通过接口进行交互。分析和实验表明基于这种架构Hibernate改善了数据管理的效率,同时也提高了程序的开发效率,不失为是一种有效的技术。3、将这种数据对象持久化技术应用于数字化校园中,并取得一定的效果。

【Abstract】 Data Persistence is a heated research area in today’s company applications. Data Persistence layer is capable of dealing with the enquiries, storage, update and deletion of the data stored in the database .Nowadays, most of the databases are relational databases whose designs and developments are in an object-oriented approach. Therefore, the project data persistence layer is the key part of the whole system for us to improve the data management efficiency.In this dissertation, a wide exploration and thorough analysis has been made on both the theories and the present application situations of data persistence. Based on the digital campus, the following exploration and research on data persistence will be demonstrated:1、A comprehensive analysis on the basic theories of data persistence is given in this dissertation in order to explain the typical features of data persistence, as well as the requirements of the realization of data persistence.2、Basing on the skill of hibernate, a deep analysis has been made on several modern types of data persistence model, with the result that the framework of Spring+Struts+Hibernate is constructed. Spring+Struts+Hibernate is different from the other models in that it constructed the whole framework with Spring, using the Bean to manage the Struts controller , organize the business objects and model layers, and carry out the database operations in connection with the persistence layer.Both the view layer and layer controller are realized through the Struts framework, and the model layer is indeed can be further divided into data access layer (DAO) and data service layer (Manager). Using the powerful persistence operations which are provided by the Hibernate will realize the persistence layer. The relationship principles between each layer of the whole system should be top-down that is the upper layers can rely on the lower ones, but the lower layers should rely on the other lower ones as less as possible. At the same time, the interaction between each level should depend on the interface, rather than on the realization. Basing on the analysis and experiments, we can find out that not only the data management efficiency but also the development efficiency of the programs has been improved by this hibernate framework, which, after all, is an effective technique. 3、With this data object persistence technology applied on digital campus, a certain amount of success will be achieved.

  • 【分类号】TP311.52
  • 【被引频次】3
  • 【下载频次】60
节点文献中: