JDBC实用工具组件 DbUtils 1.4 发布下载
fmms 13年前
<p><a href="/misc/goto?guid=4958195654698314880" target="_blank">dbutils 1.4 </a>发布了,dbutils 并不是一个严格意义上的 ORM 框架,它提供了一些Jdbc的操作封装来简化数据查询和记录读取操作。本站使用的就是 dbutils 这个工具包来进行数据库存取。<br /> 用法:<br /> </p> <pre class="brush:java; toolbar: true; auto-links: false;">QueryRunner run = new QueryRunner(dataSource); // Use the BeanHandler implementation to convert the first // ResultSet row into a Person JavaBean. ResultSetHandler h = new BeanHandler(Person.class); // Execute the SQL statement with one replacement parameter and // return the results in a new Person object generated by the BeanHandler. Person p = (Person) run.query("SELECT * FROM Person WHERE name=?", "John Doe", h); </pre> <p></p> <p>新版本主要改进内容有:</p> <p>新特性:</p> <ul> <li>增加异步批操作、查询和更新调用 Issue: DBUTILS-78.</li> </ul> <p>修复的bug:</p> <ul> <li>DbUtils.loadDriver() uses Class.forName() Issue: DBUTILS-81.</li> <li>DbUtils.loadDriver catches Throwable Issue: DBUTILS-80.</li> <li>Duplicate code introduced during Java 1.5 branch merge Issue: DBUTILS-65.</li> <li>fillStatement doesn't complain when there are too few parameters</li> </ul> <p>改变:</p> <ul> <li>efficient usage from findbugs Issue: DBUTILS-75.</li> </ul> <p>下载地址:<a href="/misc/goto?guid=4958195655438626154" target="_blank">http://commons.apache.org/dbutils/download_dbutils.cgi</a></p>