A B C D F G H I L M N O P Q R S T U W

A

ArrayHandler - class org.apache.commons.dbutils.handlers.ArrayHandler.
ResultSetHandler implementation that converts a ResultSet into an Object[].
ArrayHandler() - Constructor for class org.apache.commons.dbutils.handlers.ArrayHandler
Creates a new instance of ArrayHandler using a BasicRowProcessor for conversion.
ArrayHandler(RowProcessor) - Constructor for class org.apache.commons.dbutils.handlers.ArrayHandler
Creates a new instance of ArrayHandler.
ArrayListHandler - class org.apache.commons.dbutils.handlers.ArrayListHandler.
ResultSetHandler implementation that converts the ResultSet into a List of Object[]s.
ArrayListHandler() - Constructor for class org.apache.commons.dbutils.handlers.ArrayListHandler
Creates a new instance of ArrayListHandler using a BasicRowProcessor for conversions.
ArrayListHandler(RowProcessor) - Constructor for class org.apache.commons.dbutils.handlers.ArrayListHandler
Creates a new instance of ArrayListHandler.

B

BasicRowProcessor - class org.apache.commons.dbutils.BasicRowProcessor.
Basic implementation of the RowProcessor interface.
BasicRowProcessor() - Constructor for class org.apache.commons.dbutils.BasicRowProcessor
Protected constructor for BasicRowProcessor subclasses only.
BeanHandler - class org.apache.commons.dbutils.handlers.BeanHandler.
ResultSetHandler implementation that converts the first ResultSet row into a JavaBean.
BeanHandler(Class) - Constructor for class org.apache.commons.dbutils.handlers.BeanHandler
Creates a new instance of BeanHandler.
BeanHandler(Class, RowProcessor) - Constructor for class org.apache.commons.dbutils.handlers.BeanHandler
Creates a new instance of BeanHandler.
BeanListHandler - class org.apache.commons.dbutils.handlers.BeanListHandler.
ResultSetHandler implementation that converts a ResultSet into a List of beans.
BeanListHandler(Class) - Constructor for class org.apache.commons.dbutils.handlers.BeanListHandler
Creates a new instance of BeanListHandler.
BeanListHandler(Class, RowProcessor) - Constructor for class org.apache.commons.dbutils.handlers.BeanListHandler
Creates a new instance of BeanListHandler.

C

close(Connection) - Static method in class org.apache.commons.dbutils.DbUtils
Close a Connection, avoid closing if null.
close(ResultSet) - Static method in class org.apache.commons.dbutils.DbUtils
Close a ResultSet, avoid closing if null.
close(Statement) - Static method in class org.apache.commons.dbutils.DbUtils
Close a Statement, avoid closing if null.
closeQuietly(Connection) - Static method in class org.apache.commons.dbutils.DbUtils
Close a Connection, avoid closing if null and hide any SQLExceptions that occur.
closeQuietly(Connection, Statement, ResultSet) - Static method in class org.apache.commons.dbutils.DbUtils
Close a Connection, Statement and ResultSet.
closeQuietly(ResultSet) - Static method in class org.apache.commons.dbutils.DbUtils
Close a ResultSet, avoid closing if null and hide any SQLExceptions that occur.
closeQuietly(Statement) - Static method in class org.apache.commons.dbutils.DbUtils
Close a Statement, avoid closing if null and hide any SQLExceptions that occur.
commitAndClose(Connection) - Static method in class org.apache.commons.dbutils.DbUtils
Commits a Connection then closes it, avoid closing if null.
commitAndCloseQuietly(Connection) - Static method in class org.apache.commons.dbutils.DbUtils
Commits a Connection then closes it, avoid closing if null and hide any SQLExceptions that occur.
createCallableStatement(InvocationHandler) - Method in class org.apache.commons.dbutils.ProxyFactory
Creates a new proxy CallableStatement object.
createConnection(InvocationHandler) - Method in class org.apache.commons.dbutils.ProxyFactory
Creates a new proxy Connection object.
createDriver(InvocationHandler) - Method in class org.apache.commons.dbutils.ProxyFactory
Creates a new proxy Driver object.
createPreparedStatement(InvocationHandler) - Method in class org.apache.commons.dbutils.ProxyFactory
Creates a new proxy PreparedStatement object.
createResultSet(InvocationHandler) - Method in class org.apache.commons.dbutils.ProxyFactory
Creates a new proxy ResultSet object.
createResultSetMetaData(InvocationHandler) - Method in class org.apache.commons.dbutils.ProxyFactory
Creates a new proxy ResultSetMetaData object.
createStatement(InvocationHandler) - Method in class org.apache.commons.dbutils.ProxyFactory
Creates a new proxy Statement object.

D

DbUtils - class org.apache.commons.dbutils.DbUtils.
A collection of JDBC helper methods.
DbUtils() - Constructor for class org.apache.commons.dbutils.DbUtils
 
ds - Variable in class org.apache.commons.dbutils.QueryRunner
The DataSource to retrieve connections from.

F

fillStatement(PreparedStatement, Object[]) - Method in class org.apache.commons.dbutils.QueryRunner
Fill the PreparedStatement replacement parameters with the given objects.

G

getDataSource() - Method in class org.apache.commons.dbutils.QueryRunner
Returns the DataSource this runner is using.
getNullAsciiStream() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getAsciiStream method.
getNullBigDecimal() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getBigDecimal method.
getNullBinaryStream() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getBinaryStream method.
getNullBlob() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getBlob method.
getNullBoolean() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getBoolean method.
getNullByte() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getByte method.
getNullBytes() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getBytes method.
getNullCharacterStream() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getCharacterStream method.
getNullClob() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getClob method.
getNullDate() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getDate method.
getNullDouble() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getDouble method.
getNullFloat() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getFloat method.
getNullInt() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getInt method.
getNullLong() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getLong method.
getNullObject() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getObject method.
getNullRef() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getRef method.
getNullShort() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getShort method.
getNullString() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getString method.
getNullTime() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getTime method.
getNullTimestamp() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getTimestamp method.
getNullURL() - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Returns the value when a SQL null is encountered as the result of invoking a getURL method.

H

handle(ResultSet) - Method in interface org.apache.commons.dbutils.ResultSetHandler
Turn the ResultSet into an Object.
handle(ResultSet) - Method in class org.apache.commons.dbutils.handlers.ArrayHandler
Places the column values from the first row in an Object[].
handle(ResultSet) - Method in class org.apache.commons.dbutils.handlers.ArrayListHandler
Convert each row's columns into an Object[] and store them in a List in the same order they are returned from the ResultSet.next() method.
handle(ResultSet) - Method in class org.apache.commons.dbutils.handlers.BeanHandler
Convert the first row of the ResultSet into a bean with the Class given in the constructor.
handle(ResultSet) - Method in class org.apache.commons.dbutils.handlers.BeanListHandler
Convert the ResultSet rows into a List of beans with the Class given in the constructor.
handle(ResultSet) - Method in class org.apache.commons.dbutils.handlers.MapHandler
Converts the first row in the ResultSet into a Map.
handle(ResultSet) - Method in class org.apache.commons.dbutils.handlers.MapListHandler
Converts the ResultSet rows into a List of Map objects.
handle(ResultSet) - Method in class org.apache.commons.dbutils.handlers.ScalarHandler
Returns one ResultSet column as an object via the ResultSet.getObject() method that performs type conversions.
hasNext() - Method in class org.apache.commons.dbutils.ResultSetIterator
 

I

instance() - Static method in class org.apache.commons.dbutils.BasicRowProcessor
Returns the Singleton instance of this class.
instance() - Static method in class org.apache.commons.dbutils.ProxyFactory
Returns the Singleton instance of this class.
instance() - Static method in class org.apache.commons.dbutils.QueryLoader
Return an instance of this class.
invoke(Object, Method, Object[]) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Intercepts calls to get* methods and calls the appropriate getNull* method if the ResultSet returned null.
invoke(Object, Method, Object[]) - Method in class org.apache.commons.dbutils.wrappers.StringTrimmedResultSet
Intercept calls to the getString() and getObject() methods and trim any Strings before they're returned.

L

load(String) - Method in class org.apache.commons.dbutils.QueryLoader
Loads a Map of query names to SQL values.
loadDriver(String) - Static method in class org.apache.commons.dbutils.DbUtils
Loads and registers a database driver class.

M

MapHandler - class org.apache.commons.dbutils.handlers.MapHandler.
ResultSetHandler implementation that converts the first ResultSet row into a Map.
MapHandler() - Constructor for class org.apache.commons.dbutils.handlers.MapHandler
Creates a new instance of MapHandler using a BasicRowProcessor for conversion.
MapHandler(RowProcessor) - Constructor for class org.apache.commons.dbutils.handlers.MapHandler
Creates a new instance of MapHandler.
MapListHandler - class org.apache.commons.dbutils.handlers.MapListHandler.
ResultSetHandler implementation that converts a ResultSet into a List of Maps.
MapListHandler() - Constructor for class org.apache.commons.dbutils.handlers.MapListHandler
Creates a new instance of MapListHandler using a BasicRowProcessor for conversion.
MapListHandler(RowProcessor) - Constructor for class org.apache.commons.dbutils.handlers.MapListHandler
Creates a new instance of MapListHandler.

N

next() - Method in class org.apache.commons.dbutils.ResultSetIterator
Returns the next row as an Object[].

O

org.apache.commons.dbutils - package org.apache.commons.dbutils
 
org.apache.commons.dbutils.handlers - package org.apache.commons.dbutils.handlers
 
org.apache.commons.dbutils.wrappers - package org.apache.commons.dbutils.wrappers
 

P

ProxyFactory - class org.apache.commons.dbutils.ProxyFactory.
Creates proxy implementations of JDBC interfaces.
ProxyFactory() - Constructor for class org.apache.commons.dbutils.ProxyFactory
Protected constructor for ProxyFactory subclasses to use.
prepareStatement(Connection, String) - Method in class org.apache.commons.dbutils.QueryRunner
Factory method that creates and initializes a PreparedStatement object for the given SQL.
printStackTrace(SQLException) - Static method in class org.apache.commons.dbutils.DbUtils
 
printStackTrace(SQLException, PrintWriter) - Static method in class org.apache.commons.dbutils.DbUtils
 
printWarnings(Connection) - Static method in class org.apache.commons.dbutils.DbUtils
 
printWarnings(Connection, PrintWriter) - Static method in class org.apache.commons.dbutils.DbUtils
 

Q

QueryLoader - class org.apache.commons.dbutils.QueryLoader.
QueryLoader loads properties files filled with query name to SQL mappings.
QueryLoader() - Constructor for class org.apache.commons.dbutils.QueryLoader
QueryLoader constructor.
QueryRunner - class org.apache.commons.dbutils.QueryRunner.
Executes SQL queries with pluggable strategies for handling ResultSets.
QueryRunner() - Constructor for class org.apache.commons.dbutils.QueryRunner
Constructor for QueryRunner.
QueryRunner(DataSource) - Constructor for class org.apache.commons.dbutils.QueryRunner
Constructor for QueryRunner.
query(Connection, String, Object, ResultSetHandler) - Method in class org.apache.commons.dbutils.QueryRunner
Execute an SQL SELECT query with a single replacement parameter.
query(Connection, String, Object[], ResultSetHandler) - Method in class org.apache.commons.dbutils.QueryRunner
Execute an SQL SELECT query with replacement parameters.
query(Connection, String, ResultSetHandler) - Method in class org.apache.commons.dbutils.QueryRunner
Execute an SQL SELECT query without any replacement parameters.
query(String, Object, ResultSetHandler) - Method in class org.apache.commons.dbutils.QueryRunner
Executes the given SELECT SQL with a single replacement parameter.
query(String, Object[], ResultSetHandler) - Method in class org.apache.commons.dbutils.QueryRunner
Executes the given SELECT SQL query and returns a result object.
query(String, ResultSetHandler) - Method in class org.apache.commons.dbutils.QueryRunner
Executes the given SELECT SQL without any replacement parameters.

R

ResultSetHandler - interface org.apache.commons.dbutils.ResultSetHandler.
Implementations of this interface convert ResultSets into other objects.
ResultSetIterator - class org.apache.commons.dbutils.ResultSetIterator.
Wraps a ResultSet in an Iterator.
ResultSetIterator(ResultSet) - Constructor for class org.apache.commons.dbutils.ResultSetIterator
Constructor for ResultSetIterator.
ResultSetIterator(ResultSet, RowProcessor) - Constructor for class org.apache.commons.dbutils.ResultSetIterator
Constructor for ResultSetIterator.
RowProcessor - interface org.apache.commons.dbutils.RowProcessor.
RowProcessor implementations convert ResultSet rows into various other objects.
remove() - Method in class org.apache.commons.dbutils.ResultSetIterator
Deletes the current row from the ResultSet.
rethrow(SQLException, String, Object[]) - Method in class org.apache.commons.dbutils.QueryRunner
Throws a new exception with a more informative error message.
rollback(Connection) - Static method in class org.apache.commons.dbutils.DbUtils
Rollback any changes made on the given connection.

S

ScalarHandler - class org.apache.commons.dbutils.handlers.ScalarHandler.
ResultSetHandler implementation that converts one ResultSet column into an Object.
ScalarHandler() - Constructor for class org.apache.commons.dbutils.handlers.ScalarHandler
Creates a new instance of ScalarHandler.
ScalarHandler(int) - Constructor for class org.apache.commons.dbutils.handlers.ScalarHandler
Creates a new instance of ScalarHandler.
ScalarHandler(String) - Constructor for class org.apache.commons.dbutils.handlers.ScalarHandler
Creates a new instance of ScalarHandler.
SqlNullCheckedResultSet - class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet.
Decorates a ResultSet with checks for a SQL NULL value on each getXXX method.
SqlNullCheckedResultSet(ResultSet) - Constructor for class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Constructs a new instance of SqlNullCheckedResultSet to wrap the specified ResultSet.
StringTrimmedResultSet - class org.apache.commons.dbutils.wrappers.StringTrimmedResultSet.
Wraps a ResultSet to trim strings returned by the getString() and getObject() methods.
StringTrimmedResultSet(ResultSet) - Constructor for class org.apache.commons.dbutils.wrappers.StringTrimmedResultSet
Constructs a new instance of StringTrimmedResultSet to wrap the specified ResultSet.
setDataSource(DataSource) - Method in class org.apache.commons.dbutils.QueryRunner
Sets the DataSource this runner will use to get database connections from.
setNullAsciiStream(InputStream) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getAsciiStream method.
setNullBigDecimal(BigDecimal) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getBigDecimal method.
setNullBinaryStream(InputStream) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getBinaryStream method.
setNullBlob(Blob) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getBlob method.
setNullBoolean(boolean) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getBoolean method.
setNullByte(byte) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getByte method.
setNullBytes(byte[]) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getBytes method.
setNullCharacterStream(Reader) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getCharacterStream method.
setNullClob(Clob) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getClob method.
setNullDate(Date) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getDate method.
setNullDouble(double) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getDouble method.
setNullFloat(float) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getFloat method.
setNullInt(int) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getInt method.
setNullLong(long) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getLong method.
setNullObject(Object) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getObject method.
setNullRef(Ref) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getRef method.
setNullShort(short) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getShort method.
setNullString(String) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getString method.
setNullTime(Time) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getTime method.
setNullTimestamp(Timestamp) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getTimestamp method.
setNullURL(URL) - Method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Sets the value to return when a SQL null is encountered as the result of invoking a getURL method.

T

toArray(ResultSet) - Method in class org.apache.commons.dbutils.BasicRowProcessor
Convert a ResultSet row into an Object[].
toArray(ResultSet) - Method in interface org.apache.commons.dbutils.RowProcessor
Create an Object[] from the column values in one ResultSet row.
toBean(ResultSet, Class) - Method in class org.apache.commons.dbutils.BasicRowProcessor
Convert a ResultSet row into a JavaBean.
toBean(ResultSet, Class) - Method in interface org.apache.commons.dbutils.RowProcessor
Create a JavaBean from the column values in one ResultSet row.
toBeanList(ResultSet, Class) - Method in class org.apache.commons.dbutils.BasicRowProcessor
Convert a ResultSet into a List of JavaBeans.
toBeanList(ResultSet, Class) - Method in interface org.apache.commons.dbutils.RowProcessor
Create a List of JavaBeans from the column values in all ResultSet rows.
toMap(ResultSet) - Method in class org.apache.commons.dbutils.BasicRowProcessor
Convert a ResultSet row into a Map.
toMap(ResultSet) - Method in interface org.apache.commons.dbutils.RowProcessor
Create a Map from the column values in one ResultSet row.

U

unload(String) - Method in class org.apache.commons.dbutils.QueryLoader
Removes the queries for the given path from the cache.
update(Connection, String) - Method in class org.apache.commons.dbutils.QueryRunner
Execute an SQL INSERT, UPDATE, or DELETE query without replacement parameters.
update(Connection, String, Object) - Method in class org.apache.commons.dbutils.QueryRunner
Execute an SQL INSERT, UPDATE, or DELETE query with a single replacement parameter.
update(Connection, String, Object[]) - Method in class org.apache.commons.dbutils.QueryRunner
Execute an SQL INSERT, UPDATE, or DELETE query.
update(String) - Method in class org.apache.commons.dbutils.QueryRunner
Executes the given INSERT, UPDATE, or DELETE SQL statement without any replacement parameters.
update(String, Object) - Method in class org.apache.commons.dbutils.QueryRunner
Executes the given INSERT, UPDATE, or DELETE SQL statement with a single replacement parameter.
update(String, Object[]) - Method in class org.apache.commons.dbutils.QueryRunner
Executes the given INSERT, UPDATE, or DELETE SQL statement.

W

wrap(ResultSet) - Method in class org.apache.commons.dbutils.QueryRunner
Wrap the ResultSet in a decorator before processing it.
wrap(ResultSet) - Static method in class org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSet
Wraps the ResultSet in an instance of this class.
wrap(ResultSet) - Static method in class org.apache.commons.dbutils.wrappers.StringTrimmedResultSet
Wraps the ResultSet in an instance of this class.

A B C D F G H I L M N O P Q R S T U W

Copyright © 2002-2003 Apache Software Foundation. All Rights Reserved.