Package 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.
-
Interface Summary Interface Description ColumnHandler<T> Defines how to process columns when constructing a bean from aResultSet.PropertyHandler Defines how to handle properties when constructing a bean from aResultSet.ResultSetHandler<T> Implementations of this interface convert ResultSets into other objects.RowProcessor RowProcessorimplementations convertResultSetrows into various other objects. -
Class Summary Class Description AbstractQueryRunner The base class for QueryRunner & AsyncQueryRunner.AsyncQueryRunner Executes SQL queries with pluggable strategies for handlingResultSets.BaseResultSetHandler<T> Extensions of this class convert ResultSets into other objects.BasicRowProcessor Basic implementation of theRowProcessorinterface.BeanProcessor BeanProcessormatches column names to bean property names and convertsResultSetcolumns into objects for those bean properties.DbUtils A collection of JDBC helper methods.GenerousBeanProcessor Provides generous name matching (e.g.OutParameter<T> Represents an OUT parameter for a stored procedure.ProxyFactory Creates proxy implementations of JDBC interfaces.QueryLoader QueryLoaderis a registry for sets of queries so that multiple copies of the same queries aren't loaded into memory.QueryRunner Executes SQL queries with pluggable strategies for handlingResultSets.ResultSetIterator Wraps aResultSetin anIterator<Object[]>.StatementConfiguration Configuration options for aStatementwhen preparing statements inQueryRunner.StatementConfiguration.Builder Builder class forStatementConfigurationfor more flexible construction. -
Annotation Types Summary Annotation Type Description Column Annotation for BeanProcessor to receive hints of the field name rather than dissecting the method name.