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

可重用Java数据库操作组件的设计和实现
引用本文:岳旭平,王道顺.可重用Java数据库操作组件的设计和实现[J].计算机应用研究,2006,23(2):160-162.
作者姓名:岳旭平  王道顺
作者单位:清华大学,计算机系,北京,100084;清华大学,计算机系,北京,100084
基金项目:国家自然科学基金资助项目(90304014)
摘    要:基于Data Access Object(DAO)设计模式,利用抽象、接口、类反射技术设计和实现了可重用Java数据库操作组件。它封装了注册和载入JDBC驱动程序、建立数据库连接、运行Structured Query Language(SQL)语句及处理查询结果集、查询结果集的分页显示操作,简化了Java DataBase Connectivity(JDBC)代码的编写,通过编写SQL语句,完成与数据库的交互。它设计的目标是简化中小型Java数据库应用的开发,提高开发的速度和测试的速度,降低数据库应用与数

关 键 词:DAO设计模式  数据库  JDBC  连接  抽象  Struts  类反射  JavaBeans
文章编号:1001-3695(2006)02-0160-03
收稿时间:2005-02-25
修稿时间:2005-02-252005-04-16

Design and Implementation of Module for Database in Java
YUE Xu-ping,WANG Dao-shun.Design and Implementation of Module for Database in Java[J].Application Research of Computers,2006,23(2):160-162.
Authors:YUE Xu-ping  WANG Dao-shun
Affiliation:(Dept. of Computer Science & Technology, Tsinghua University, Beijing 100084, China)
Abstract:The module for the database in Java through abstract is designed and Implemented,interface and reflection technique. It encloses the common operations such as registering and loading JDBC driver, building database connection, running SQL and dealing with result sets, paging the record. It simplifies the coding of JDBC and completes the operations of accessing database through writing SQL. It will simplify the development of the database application in Java, make the procedure of the development more easy, decrease the relativity between the database and the application and centralize the management of the data access. It can integrate with Struts model perfectly. This paper will demonstrate how to use this module through a simple example.
Keywords:DAO Design Pattern  Database  JDBC  Connection  Abstract  Struts  Reflection Tag  JavaBeans
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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