节点文献

采用DAO模式实现J2EE数据访问层

Implement the data access tier of J2EE byDAOpattern

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 孙杰林红桔

【Author】 SUN Jie,LIN Hong-ju(Tianjin Ploytechnic University Computer Sicience & Automation College,Tianjin 300160)

【机构】 天津工业大学 计算机及自动化学院天津工业大学 计算机及自动化学院 天津 300160天津 300160

【摘要】 随着基于J2EE分布式多层应用的发展,由此引入的分层逻辑处理的框架逐渐成熟,同时几乎所有的J2EE应用都需要访问持久性数据资源,如此以来,实现和封装J2EE数据访问层越来越成为构建稳定、健壮和灵活的J2EE应用的基础。本文阐述了如何采用J2EE核心设计模式DAO(DataAccess Object)实现数据访问层逻辑,以及在DAO中如何实现事务和异常处理,并通过一个已经成功应用的实例来详细描述了DAO的具体实现方法。

【Abstract】 With the developement of distributed N-tiers application based on J2EE,as a result the framework of N-tiers logic procedure becomes more and more mature,and almost all of these J2EE applications need to access the persistent data resource,so implementation and encapsulation of the tier of data access becomes more and more necessary to construct stable,strong and flexible J2EE applications. The paper explains how to use the core design pattern of J2EE to implement the data access tier logic ,and how to deal with transaction and exception,finally describes the implement of DAO in details by a successful application.

【关键词】 设计模式数据访问对象JTA事务界定行集
【Key words】 design patternDAOJTAtransaction boundaryrow set
  • 【文献出处】 仪器仪表用户 ,Electronics Instrumentation Customer , 编辑部邮箱 ,2005年01期
  • 【分类号】TP311.11
  • 【被引频次】20
  • 【下载频次】162
节点文献中: 

本文链接的文献网络图示:

本文的引文网络