org.apache.commons.dbutils |
DbUtils is a small set of classes designed to make working with JDBC easier. JDBC resource cleanup code is mundane, error prone work so these classes abstract out all of the cleanup tasks from your code leaving you with what you really wanted to do with JDBC in the first place: query and update data.
This package contains the core classes and interfaces - DbUtils, QueryRunner and the ResultSetHandler interface should be your first items of interest.
|
Java Source File Name | Type | Comment |
BaseTestCase.java | Class | BaseTestCase is the base class for all test cases as well as the "all tests"
runner. |
BasicRowProcessor.java | Class | Basic implementation of the RowProcessor interface. |
BasicRowProcessorTest.java | Class | Test the BasicRowProcessor class. |
BeanProcessor.java | Class |
BeanProcessor matches column names to bean property names
and converts ResultSet columns into objects for those bean
properties. |
BeanProcessorTest.java | Class | |
DbUtils.java | Class | A collection of JDBC helper methods. |
MockResultSet.java | Class | MockResultSet dynamically implements the ResultSet interface. |
MockResultSetMetaData.java | Class | MockResultSetMetaData dynamically implements the ResultSetMetaData
interface. |
ProxyFactory.java | Class | Creates proxy implementations of JDBC interfaces. |
ProxyFactoryTest.java | Class | ProxyFactoryTest performs simple type checking on proxy objects returned
from a ProxyFactory. |
QueryLoader.java | Class | QueryLoader is a registry for sets of queries so
that multiple copies of the same queries aren't loaded into memory.
This implementation loads properties files filled with query name to
SQL mappings. |
QueryLoaderTest.java | Class | |
QueryRunner.java | Class | Executes SQL queries with pluggable strategies for handling
ResultSet s. |
ResultSetHandler.java | Interface | Implementations of this interface convert ResultSets into other objects. |
ResultSetIterator.java | Class |
Wraps a ResultSet in an Iterator . |
ResultSetIteratorTest.java | Class | |
RowProcessor.java | Interface | RowProcessor implementations convert
ResultSet rows into various other objects. |
TestBean.java | Class | A bean to use in testing toBean() and toBeanList(). |