检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]清华大学计算机系,北京100084
出 处:《计算机应用研究》2006年第2期160-162,166,共4页Application Research of Computers
基 金:国家自然科学基金资助项目(90304014)
摘 要:基于Data AccessObject(DAO)设计模式,利用抽象、接口、类反射技术设计和实现了可重用Java数据库操作组件。它封装了注册和载入JDBC驱动程序、建立数据库连接、运行Structured Query Language(SQL)语句及处理查询结果集、查询结果集的分页显示操作,简化了Java DataBase Connectivity(JDBC)代码的编写,通过编写SQL语句,完成与数据库的交互。它设计的目标是简化中小型Java数据库应用的开发,提高开发的速度和测试的速度,降低数据库应用与数据来源的相关性,实现集中管理数据存取逻辑的功能。它与Struts框架有机结合,可进一步提高开发W eb应用的效率。为方便使用它,通过一个例子给予了详细描述。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.
关 键 词:DAO设计模式 数据库 JDBC 连接 抽象 STRUTS 类反射 JAVABEANS
分 类 号:TP311.13[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222