首页 | 本学科首页   官方微博 | 高级检索  
     

数据访问对象设计模式
引用本文:龙世瑜,林汉,陈新源. 数据访问对象设计模式[J]. 计算机与现代化, 2004, 0(5): 1-3
作者姓名:龙世瑜  林汉  陈新源
作者单位:湛江师范学院信息科技学院,广东,湛江,524048;湛江师范学院信息科技学院,广东,湛江,524048;湛江师范学院信息科技学院,广东,湛江,524048
摘    要:与数据源特性相关的数据访问代码,往往将数据访问逻辑和业务逻辑捆绑在一起。这使替换或更改程序的数据源变得十分困难,降低程序的扩展性和移植性,同时增加了维护成本。本文详细介绍了数据访问对象设计模式:将数据源的客户访问接口和数据访问机制分离开,使特定的数据源访问AH转化成普通的客户端接口。这样数据访问机制的代码便可根据数据源的变化单独更改,系统的扩展性获得极大提升,维护亦更加容易。依据数据访问对象设计模式来设计系统能很好地解决大型J2EE应用系统设计中遇到的扩展性、维护性等问题。

关 键 词:数据访问对象  设计模式  J2EE  数据访问逻辑
文章编号:1006-2475(2004)05-0001-03
修稿时间:2003-09-12

Data Access Object Pattern
LONG Shi-yu,LIN Han,CHEN Xin-yuan. Data Access Object Pattern[J]. Computer and Modernization, 2004, 0(5): 1-3
Authors:LONG Shi-yu  LIN Han  CHEN Xin-yuan
Abstract:Code that depends on specific features of data resources ties together business logic with data access logic.This makes it difficult to replace or modify an application's data resources,reduces the system's expansibility and increases maintenance cost.The Data Access Object (or DAO) pattern separates a data resource's client interface from its data access mechanisms,adapts a specific data resource's access API to a generic client interface.It allows data access mechanisms to change independently of the code that uses the data,improves the system's expansibility and maintainability.Thus the DAO can be used to solve the expansibility and maintainability problems which are met in most complex J2EE Application.
Keywords:data access object  design pattern  J2EE  data access logic  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号