52ky 发表于 2022-10-20 11:19:18

Dbutils项目实例

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)




页: [1]
查看完整版本: Dbutils项目实例