T - The type of the result from the call to handle.protected class AsyncQueryRunner.QueryCallableStatement<T> extends Object implements Callable<T>
| Constructor and Description |
|---|
QueryCallableStatement(Connection conn,
boolean closeConn,
PreparedStatement ps,
ResultSetHandler<T> rsh,
String sql,
Object... params)
Creates a new
QueryCallableStatement instance. |
public QueryCallableStatement(Connection conn, boolean closeConn, PreparedStatement ps, ResultSetHandler<T> rsh, String sql, Object... params)
QueryCallableStatement instance.conn - The connection to use for the batch call.closeConn - True if the connection should be closed, false otherwise.ps - The PreparedStatement to be executed.rsh - The handler that converts the results into an object.sql - The SQL statement to execute.params - An array of query replacement parameters. Each row in
this array is one set of batch replacement values.public T call() throws SQLException
handle() method.call in interface Callable<T>SQLException - if a database access error occurs.ResultSetHandler.handle(ResultSet)Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.