You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/09/17 12:07:41 UTC
svn commit: r1171935 -
/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
Author: simonetripodi
Date: Sat Sep 17 10:07:41 2011
New Revision: 1171935
URL: http://svn.apache.org/viewvc?rev=1171935&view=rev
Log:
added missing javadoc
Modified:
commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
Modified: commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java?rev=1171935&r1=1171934&r2=1171935&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java (original)
+++ commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java Sat Sep 17 10:07:41 2011
@@ -225,6 +225,17 @@ public class AsyncQueryRunner extends Ab
private PreparedStatement ps;
private ResultSetHandler<T> rsh;
+ /**
+ * Creates a new {@code QueryCallableStatement} instance.
+ *
+ * @param conn The connection to use for the batch call.
+ * @param closeConn True if the connection should be closed, false otherwise.
+ * @param ps The {@link PreparedStatement} to be executed.
+ * @param rsh The handler that converts the results into an object.
+ * @param sql The SQL statement to execute.
+ * @param params An array of query replacement parameters. Each row in
+ * this array is one set of batch replacement values.
+ */
public QueryCallableStatement(Connection conn, boolean closeConn, PreparedStatement ps, ResultSetHandler<T> rsh, String sql, Object... params) {
this.sql = sql;
this.params = params;
@@ -234,6 +245,13 @@ public class AsyncQueryRunner extends Ab
this.rsh = rsh;
}
+ /**
+ * The actual call to {@code handle()} method.
+ *
+ * @return an array of update counts containing one element for each command in the batch.
+ * @throws Exception if a database access error occurs.
+ * @see ResultSetHandler#handle(ResultSet)
+ */
public T call() throws Exception {
ResultSet rs = null;
T ret = null;