找回密码
 立即注册
操作operationsconnection数据表 | Jsp/Servlet 2022-10-20 57 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
1关于数据表的读操作他可以把结果转换成ListArraySet等java集合便于程序员操作;2关于数据表的写操作也变得很简单(只需写sql语句)3可以使用数据源使用JNDI数据库连接池等技术来优化功能重用已经构建好的数据库连接对象而不像phpasp那样费时费力的不断重复的构建和析构这样的对象DBUtils包括3个包:orgapachecommonsdbutilsorgapachecommonsdbutilshandlersorgapachecommonsdbutilswrappersDBUtils封装了对JDBC的操作简化了JDBC操作可以少写代码orgapachecommonsdbutilsDbUtils关闭连接等操作

(1. For the reading operation of data table, he can convert the results into Java collections such as ListArraySet, which is convenient for programmers to operate; 2. It is also easy to write data tables (just write SQL statements) 3. You can use data sources to optimize functions by using JNDI database connection pool and other technologies. Reuse the built database connection objects instead of the time-consuming and laborious repeated construction and deconstruction of such objects as phpasp. DBUtils include three packages: orgapache commonsdbutilsorgapache commonsdbutilshandlersororgapache commonsdbutilswrappersDBUtils encapsulates JDBC operations, simplifies JDBC operations, and can write fewer codes. orgapache commonsdbutil SDbUtils Operations such as closing the connection)

[下载]11191949632.rar




上一篇:jd-core-java-1.2
下一篇:myeclipse为web项目添加flex并实现与java通信Java源码