Package org.apache.commons.dbutils
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.
-
ClassDescriptionThe base class for QueryRunner & AsyncQueryRunner.Executes SQL queries with pluggable strategies for handling
ResultSets.Extensions of this class convert ResultSets into other objects.Basic implementation of theRowProcessorinterface.A Map that converts all keys to lowercase Strings for case insensitive lookups.BeanProcessormatches column names to bean property names and convertsResultSetcolumns into objects for those bean properties.Interface to define how implementations can interact with column handling when constructing a bean from aResultSet.A collection of JDBC helper methods.SimpleDriverproxy class that proxies a JDBC Driver loaded dynamically.Provides generous name matching (e.g.OutParameter<T>Represents an OUT parameter for a stored procedure.Interface to define how implementations can interact with property handling when constructing a bean from aResultSet.Creates proxy implementations of JDBC interfaces.QueryLoaderis a registry for sets of queries so that multiple copies of the same queries aren't loaded into memory.Executes SQL queries with pluggable strategies for handlingResultSets.Implementations of this interface convert ResultSets into other objects.Wraps aResultSetin anIterator<Object[]>.RowProcessorimplementations convertResultSetrows into various other objects.Configuration options for aStatementwhen preparing statements inQueryRunner.Builder class forStatementConfigurationfor more flexible construction.