期刊文献+

基于模板方法的JDBC API的抽象封装与实现 被引量:7

Wrapping JDBC API with template method pattern
下载PDF
导出
摘要 作为访问关系数据库的核心标准,JDBC在Java平台的应用上发挥着至关重要的作用,然而它自身的不足增加了直接基于JDBC API应用的复杂度。分析了直接采用JDBC API访问数据库的相关问题,并利用模板方法和回调函数对API进行抽象封装,且给出了相应的实现,最后比较了直接采用JDBC API和对API进行封装后的性能差异,证明该封装与实现是一个良好的实践模型。 As a standard core specification to access relational database, JDBC(Java Database Connectivity) plays an important role in the Java platform applications. However, due to its own deficiency, complexities are introduced into the applications directly based on JDBC API(Application Programming Interface). Some related issues when using JDBC API to access database were discussed, and template method and callback functions were adopted to wrap and implement API. Then, the performances between using JDBC API directly and using wrapped API were compared. It is proved that the latter approach has better performance in application.
作者 刘泉 赵晓明
出处 《计算机应用》 CSCD 北大核心 2006年第9期2222-2224,共3页 journal of Computer Applications
基金 国家科技攻关资助项目(20041g0113)
关键词 JAVA数据库连接 JAVA 模板方法 回调函数 JDBC(Java Database Connectivity) Java template method callback function
  • 相关文献

参考文献4

  • 1ELLIS J, HO L. JDBC 3.0 Specification[ EB/OL]. http://java.sun. eom/produets/jdbc/download.html, 2001.
  • 2MARX D . Add Some Spring to Your Oracle JDBC Access [ EB /OL ]. http://www.oracle.com/technology/pub/articles/marx _spring.html, 2005.
  • 3BROWNS.JSP编程指南[M].北京:电子工业出版社,2002..
  • 4GAMMA E, HELM R, JOHNSON R, et al. Design Patterns: Elements of Reusable Object-Oriented Software[ M]. Boston: Addison-Wesley Professional, 1995.

共引文献2

同被引文献44

引证文献7

二级引证文献31

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部