commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1171935 - /commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
Date Sat, 17 Sep 2011 10:07:41 GMT
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;



Mime
View raw message