替代Apache Commons DbUtils的轻量级JDBC帮助程序库 [英] Lightweight JDBC helper library alternative to Apache Commons DbUtils
问题描述
我刚刚开发了自己的小型JDBC帮助程序库,我已经意识到它将成为一个维护噩梦。
I've just developed my own tiny little JDBC helper library, and I've already realized what a maintenance nightmare it will be.
我不是在寻找对于像Hibernate这样的完全成熟的ORM,只需要一些简单而有用的东西来快速地使JDBC调用传递SQL语句而不会弄乱已检查的异常,手动关闭资源等等......
I'm not looking for a full fledged ORM, like Hibernate, just something light and useful to quickly make JDBC calls passing SQL statements without messing with checked exceptions, closing resources manually, etc...
从您的经验中,您能推荐一个不错的JDBC帮助程序库吗?
From your experiencie, can you recommend a nice JDBC helper library?
到目前为止,我已经看过 Apache Commons DbUtils 看起来相当不错。还有其他什么想法吗?
So far now, I've had a look at Apache Commons DbUtils which seems pretty good. Any other idea?
推荐答案
以下是与简单JDBC交互时缓解痛苦的工具列表:
Here's a list of tools that "ease the pain" when interacting with simple JDBC:
- Spring的 JdbcTemplate
- jOOQ (也可以与SQL字符串一起使用 - 免责声明:我为供应商工作)
- Apache DbUtils (你自己提到过)
- JDBI
- sql2o
- persism
- Spring's JdbcTemplate
- jOOQ (can be used with SQL strings as well - disclaimer: I work for the vendor)
- Apache DbUtils (which you've mentioned yourself)
- JDBI
- sql2o
- persism
这篇关于替代Apache Commons DbUtils的轻量级JDBC帮助程序库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!