摘要
当开发一个健壮的Java应用程序的时候,一个好的方法就是把持久层的API实现与一般的API的松耦合。数据访问对象(DataAccessObjects)模式,使得你可以创建一个简单组件。本文通过对数据访问对象模式的探讨实现了一种通用的数据访问对象(DAO)模式。它封装实现了对应用程序的数据访问操作,从而使开发人员不必关心内部实现。使用DAO模式访问数据,可以动态地配置不同的持久化机制。
When developing robust Java applications,it is often a good idea to isolate the specifics of your persistence implementation behind a common API. Data Access Objects allow you to create simple components. This article implements a common DAO pattern through doing some discussion and research on Data Access Object pattern. A common DAO that provide access to your data without revealing the specifics of the implementation to the rest of your application. Using DAOs you can allow your application to be dynamically configured to use different persistence mechanisms.
出处
《计算机应用与软件》
CSCD
北大核心
2005年第9期136-138,共3页
Computer Applications and Software