Package | Description |
---|---|
org.apache.commons.dbutils |
DbUtils is a small set of classes designed to make working with JDBC easier.
|
org.apache.commons.dbutils.handlers |
Implementations of the org.apache.commons.dbutils.ResultSetHandler interface.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseResultSetHandler<T>
Extensions of this class convert ResultSets into other objects.
|
Modifier and Type | Method and Description |
---|---|
<T> List<T> |
QueryRunner.execute(Connection conn,
String sql,
ResultSetHandler<T> rsh,
Object... params)
Execute an SQL statement, including a stored procedure call, which
returns one or more result sets.
|
<T> List<T> |
QueryRunner.execute(String sql,
ResultSetHandler<T> rsh,
Object... params)
Execute an SQL statement, including a stored procedure call, which
returns one or more result sets.
|
<T> T |
QueryRunner.insert(Connection conn,
String sql,
ResultSetHandler<T> rsh)
Execute an SQL INSERT query without replacement parameters.
|
<T> Future<T> |
AsyncQueryRunner.insert(Connection conn,
String sql,
ResultSetHandler<T> rsh)
Executes
QueryRunner.insert(Connection, String, ResultSetHandler) asynchronously. |
<T> T |
QueryRunner.insert(Connection conn,
String sql,
ResultSetHandler<T> rsh,
Object... params)
Execute an SQL INSERT query.
|
<T> Future<T> |
AsyncQueryRunner.insert(Connection conn,
String sql,
ResultSetHandler<T> rsh,
Object... params)
Executes
QueryRunner.insert(Connection, String, ResultSetHandler, Object...) asynchronously. |
<T> T |
QueryRunner.insert(String sql,
ResultSetHandler<T> rsh)
Executes the given INSERT SQL without any replacement parameters.
|
<T> Future<T> |
AsyncQueryRunner.insert(String sql,
ResultSetHandler<T> rsh)
Executes
QueryRunner.insert(String, ResultSetHandler) asynchronously. |
<T> T |
QueryRunner.insert(String sql,
ResultSetHandler<T> rsh,
Object... params)
Executes the given INSERT SQL statement.
|
<T> Future<T> |
AsyncQueryRunner.insert(String sql,
ResultSetHandler<T> rsh,
Object... params)
Executes
QueryRunner.insert(String, ResultSetHandler, Object...) asynchronously. |
<T> T |
QueryRunner.insertBatch(Connection conn,
String sql,
ResultSetHandler<T> rsh,
Object[][] params)
Executes the given batch of INSERT SQL statements.
|
<T> Future<T> |
AsyncQueryRunner.insertBatch(Connection conn,
String sql,
ResultSetHandler<T> rsh,
Object[][] params)
|
<T> T |
QueryRunner.insertBatch(String sql,
ResultSetHandler<T> rsh,
Object[][] params)
Executes the given batch of INSERT SQL statements.
|
<T> Future<T> |
AsyncQueryRunner.insertBatch(String sql,
ResultSetHandler<T> rsh,
Object[][] params)
QueryRunner.insertBatch(String, ResultSetHandler, Object[][]) asynchronously. |
<T> T |
QueryRunner.query(Connection conn,
String sql,
Object[] params,
ResultSetHandler<T> rsh)
Deprecated.
|
<T> T |
QueryRunner.query(Connection conn,
String sql,
Object param,
ResultSetHandler<T> rsh)
|
<T> T |
QueryRunner.query(Connection conn,
String sql,
ResultSetHandler<T> rsh)
Execute an SQL SELECT query without any replacement parameters.
|
<T> Future<T> |
AsyncQueryRunner.query(Connection conn,
String sql,
ResultSetHandler<T> rsh)
Execute an SQL SELECT query without any replacement parameters.
|
<T> T |
QueryRunner.query(Connection conn,
String sql,
ResultSetHandler<T> rsh,
Object... params)
Execute an SQL SELECT query with replacement parameters.
|
<T> Future<T> |
AsyncQueryRunner.query(Connection conn,
String sql,
ResultSetHandler<T> rsh,
Object... params)
Execute an SQL SELECT query with replacement parameters.
|
<T> T |
QueryRunner.query(String sql,
Object[] params,
ResultSetHandler<T> rsh)
Deprecated.
|
<T> T |
QueryRunner.query(String sql,
Object param,
ResultSetHandler<T> rsh)
Deprecated.
|
<T> T |
QueryRunner.query(String sql,
ResultSetHandler<T> rsh)
Executes the given SELECT SQL without any replacement parameters.
|
<T> Future<T> |
AsyncQueryRunner.query(String sql,
ResultSetHandler<T> rsh)
Executes the given SELECT SQL without any replacement parameters.
|
<T> T |
QueryRunner.query(String sql,
ResultSetHandler<T> rsh,
Object... params)
Executes the given SELECT SQL query and returns a result object.
|
<T> Future<T> |
AsyncQueryRunner.query(String sql,
ResultSetHandler<T> rsh,
Object... params)
Executes the given SELECT SQL query and returns a result object.
|
Constructor and Description |
---|
QueryCallableStatement(Connection conn,
boolean closeConn,
PreparedStatement ps,
ResultSetHandler<T> rsh,
String sql,
Object... params)
Creates a new
QueryCallableStatement instance. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractKeyedHandler<K,V>
ResultSetHandler implementation that returns a Map. |
class |
AbstractListHandler<T>
Abstract class that simplify development of
ResultSetHandler
classes that convert ResultSet into List . |
class |
ArrayHandler
ResultSetHandler implementation that converts a
ResultSet into an Object[] . |
class |
ArrayListHandler
ResultSetHandler implementation that converts the
ResultSet into a List of Object[] s. |
class |
BeanHandler<T>
ResultSetHandler implementation that converts the first
ResultSet row into a JavaBean. |
class |
BeanListHandler<T>
ResultSetHandler implementation that converts a
ResultSet into a List of beans. |
class |
BeanMapHandler<K,V>
ResultSetHandler implementation that returns a Map of Beans. |
class |
ColumnListHandler<T>
ResultSetHandler implementation that converts one
ResultSet column into a List of
Object s. |
class |
KeyedHandler<K>
ResultSetHandler implementation that returns a Map of Maps. |
class |
MapHandler
ResultSetHandler implementation that converts the first
ResultSet row into a Map . |
class |
MapListHandler
ResultSetHandler implementation that converts a
ResultSet into a List of Map s. |
class |
ScalarHandler<T>
ResultSetHandler implementation that converts one
ResultSet column into an Object. |
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.