DbUtils 可是难得更新一次啊,刚发布的 1.5 版本改进记录包括:
Bug
[DBUTILS-73] - .BasicRowProcessor.CaseInsensitiveHashMap uses default Locale for toLowerCase
[DBUTILS-77] - "drop view" does not work from QueryRunner.update with SQLServer JDBC drivers. Same SQL works with a PreparedStatement just fine.
[DBUTILS-93] - Source assembly artifact fails to build a site because of missing pmd-ruleset.xml
改进
[DBUTILS-66] - ScalarHandler, ColumnHandler and KeyedHandler are missing generics
[DBUTILS-84] - BeanProcessor method processColumn should take SQLXML in consideration
[DBUTILS-91] - Enhance BasicRowProcessor to have row mapping easier to configure
新特性
[DBUTILS-67] - Add a BeanMapHandler
[DBUTILS-76] - New handler StringColumnListHandler
任务
[DBUTILS-88] - Make AsyncQueryRunner be a decorator around a QueryRunner
测试
[DBUTILS-94] - Provide test coverage for org.apache.commons.dbutils.DbUtils
原则上这不能说是一个持久层框架,它提供了一些Jdbc的操作封装来简化数据查询和记录读取操作。本站就是采用这个项目来读写数据库,代码非常简洁,如果你厌烦了Hibernate的庞大,不妨可以试试——DbUtils。
目前 OSCHINA 正在使用 dbutils 做数据库访问层。
DbUtils 的下载地址:请点这里