# Deprecated API

## Contents

- Classes
- Fields
- Methods
- Constructors

- Deprecated Classes
  Class
  Description
  org.apache.commons.dbutils.AsyncQueryRunner.BatchCallableStatement
  No longer used by this class. Will be removed in a future version. Class that encapsulates the continuation for batch calls.
  org.apache.commons.dbutils.AsyncQueryRunner.UpdateCallableStatement
  No longer used by this class. Will be removed in a future version. Class that encapsulates the continuation for update calls.

- Deprecated Fields
  Field
  Description
  org.apache.commons.dbutils.AbstractQueryRunner.ds
  Access to this field should be through `AbstractQueryRunner.getDataSource()`.

- Deprecated Methods
  Method
  Description
  org.apache.commons.dbutils.BaseResultSetHandler.getBigDecimal(int, int)
  org.apache.commons.dbutils.BaseResultSetHandler.getBigDecimal(String, int)
  org.apache.commons.dbutils.BaseResultSetHandler.getUnicodeStream(int)
  org.apache.commons.dbutils.BaseResultSetHandler.getUnicodeStream(String)
  org.apache.commons.dbutils.BasicRowProcessor.instance()
  Create instances with the constructors instead. This will be removed after DbUtils 1.1.
  org.apache.commons.dbutils.QueryRunner.query(String, Object[], ResultSetHandler<T>)
  Use `QueryRunner.query(String, ResultSetHandler, Object...)`
  org.apache.commons.dbutils.QueryRunner.query(String, Object, ResultSetHandler<T>)
  Use `QueryRunner.query(String, ResultSetHandler, Object...)`
  org.apache.commons.dbutils.QueryRunner.query(Connection, String, Object[], ResultSetHandler<T>)
  Use `QueryRunner.query(Connection,String,ResultSetHandler,Object...)` instead
  org.apache.commons.dbutils.QueryRunner.query(Connection, String, Object, ResultSetHandler<T>)
  Use `QueryRunner.query(Connection, String, ResultSetHandler, Object...)`
  org.apache.commons.dbutils.StatementConfiguration.Builder.queryTimeout(Integer)
  Use `StatementConfiguration.Builder.queryTimeout(Duration)`.
  org.apache.commons.dbutils.StatementConfiguration.getQueryTimeout()
  Use `StatementConfiguration.getQueryTimeoutDuration()`.

- Deprecated Constructors
  Constructor
  Description
  org.apache.commons.dbutils.AsyncQueryRunner(boolean, ExecutorService)
  Use `AsyncQueryRunner(ExecutorService, QueryRunner)` instead. Constructor for AsyncQueryRunner that controls the use of `ParameterMetaData`.
  org.apache.commons.dbutils.AsyncQueryRunner(DataSource, boolean, ExecutorService)
  Use `AsyncQueryRunner(ExecutorService, QueryRunner)` instead. Constructor for AsyncQueryRunner that take a `DataSource` and controls the use of `ParameterMetaData`. Methods that do not take a `Connection` parameter will retrieve connections from this `DataSource`.
  org.apache.commons.dbutils.AsyncQueryRunner(DataSource, ExecutorService)
  Use `AsyncQueryRunner(ExecutorService, QueryRunner)` instead. Constructor for AsyncQueryRunner that takes a `DataSource`. Methods that do not take a `Connection` parameter will retrieve connections from this `DataSource`.
  org.apache.commons.dbutils.StatementConfiguration(Integer, Integer, Integer, Integer, Integer)
  Use `StatementConfiguration(Integer, Integer, Integer, Integer, Duration)`.