nsumption of large amounts of memory.At thesame time increased the complexity of the application system,and is not conducive to alasting re-used in other systems. Aim at the above—mentioned problems when using the persistent object in thedatabase.Designed an independent object persistence framework-------ORMPlatform to do theObject/Relational Mapping.Under the support of the object persistence layer framework,business layer module in accordance with the object-oriented data modeling,Can make thedata model and to complet the object data persistence.Object persistence layer frameworkbased on common database,not bundled in a particular relational database products.Objectpersistence layer provide a mechanism in common use to persistent object relational database,be re-assured for different applications. This paper mainly for the following work: (I)Analysis of the object/relational mapping theory.A detailed exposition of therelational model,object model and the basic concepts of object/relational mapping theory,object persistence model for the design of a theoretical basis (2)After detailed explanation of the basic concepts of object-oriented,desiged a simpleORM,and made a sample to illustrate the basic principles. (3)Explan the analysis and design of the persistence framework detailedly,centering onthe advantages and disadvantages of O/R Mapping,focus on a common object/relationalmapping DataSet in the design and realization,and describes the main function of theframework.Key Words:Persistence;Relational Model;Relational Database;Object/RelationalMapping 绪论 绪 论研究背景 计算机应用软件经40余年的发展到现在,主要采用面向对象的程序
设计(OOP)方法。
简单地说,面向对象是着眼于数据(对象)及对象的接口的一种技术,“所有的东西都是对象’’【ll。
大量的实践证明,OOP对
计算机的各个领域都产生了深远的影响,包括程序设计语言,软件工程,信息管理系统,计算机硬件设计等等。
而一般认为对象只能存在于内存中,内存中创建后,不可能一直存在,内存只能暂时存储加载数据,不能长久保存所需数据。
最后,数据要么在内存中被清除,要么被存储到数据库中长久保存下来。
把需要存储的数据保存到数据库的过程,即对数据进行持久化。
在进行企业级开发的时候,人们通常将应用系统分为三层:显示层,业务逻辑层,持久层I 2|。
持久层封装了把存储对象持久化的行为;业务逻辑层主要进从持久化层得到实体进行业务逻辑处理,组装成数据传输对象,提供给显示层;显示层是把经业务层处理后的对象显示给用户,同时接受用户传入的数据,传给业务逻辑层处理。
三层结构是由上而下相互依赖的,作为底层的持久层在理论上可以使用面向对象数据库,但是由于