org.apache.commons.dbutils
Class AsyncQueryRunner.UpdateCallableStatement
java.lang.Object
org.apache.commons.dbutils.AsyncQueryRunner.UpdateCallableStatement
- All Implemented Interfaces:
- Callable<Integer>
- Enclosing class:
- AsyncQueryRunner
protected class AsyncQueryRunner.UpdateCallableStatement
- extends Object
- implements Callable<Integer>
Class that encapsulates the continuation for update calls.
Method Summary |
Integer |
call()
The actual call to executeUpdate() method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncQueryRunner.UpdateCallableStatement
public AsyncQueryRunner.UpdateCallableStatement(Connection conn,
boolean closeConn,
PreparedStatement ps,
String sql,
Object... params)
- Parameters:
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.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.
call
public Integer call()
throws SQLException
- The actual call to
executeUpdate()
method.
- Specified by:
call
in interface Callable<Integer>
- Returns:
- either (1) the row count for SQL Data Manipulation Language (DML) statements or
(2) 0 for SQL statements that return nothing
- Throws:
SQLException
- if a database access error occurs.- See Also:
PreparedStatement.executeUpdate()
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.