commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r472272 - in /jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers: BeanListHandler.java GenericListHandler.java MapListHandler.java
Date Tue, 07 Nov 2006 21:17:25 GMT
Author: bayard
Date: Tue Nov  7 13:17:25 2006
New Revision: 472272

URL: http://svn.apache.org/viewvc?view=rev&rev=472272
Log:
Changed tabs to spaces

Modified:
    jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/BeanListHandler.java
    jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/GenericListHandler.java
    jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/MapListHandler.java

Modified: jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/BeanListHandler.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/BeanListHandler.java?view=diff&rev=472272&r1=472271&r2=472272
==============================================================================
--- jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/BeanListHandler.java
(original)
+++ jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/BeanListHandler.java
Tue Nov  7 13:17:25 2006
@@ -73,7 +73,7 @@
      * @see org.apache.commons.dbutils.handlers.GenericListHandler#handle(ResultSet)
      */
     protected Object handleRow(ResultSet rs) throws SQLException {
-    	return this.convert.toBean(rs, type);
+        return this.convert.toBean(rs, type);
     }
 
 }

Modified: jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/GenericListHandler.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/GenericListHandler.java?view=diff&rev=472272&r1=472271&r2=472272
==============================================================================
--- jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/GenericListHandler.java
(original)
+++ jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/GenericListHandler.java
Tue Nov  7 13:17:25 2006
@@ -28,27 +28,27 @@
  * classes that convert <code>ResultSet</code> into <code>List</code>.
  */
 abstract class GenericListHandler implements ResultSetHandler {
-	/**
-	 * Whole <code>ResultSet</code> handler. It produce <code>List</code>
as
-	 * result. To convert individual rows into Java objects it uses
-	 * <code>handleRow(ResultSet)</code> method.
-	 *
-	 * @see #handleRow(ResultSet)
-	 */
-	public Object handle(ResultSet rs) throws SQLException {
-		List rows = new ArrayList();
-		while (rs.next()) {
-			rows.add(this.handleRow(rs));
-		}
-		return rows;
-	}
-	
-	/**
-	 * Row handler. Method converts current row into some Java object.
-	 *
-	 * @param rs <code>ResultSet</code> to process.
-	 * @return row processing result
-	 * @throws SQLException error occurs
-	 */
-	protected abstract Object handleRow(ResultSet rs) throws SQLException;
+    /**
+     * Whole <code>ResultSet</code> handler. It produce <code>List</code>
as
+     * result. To convert individual rows into Java objects it uses
+     * <code>handleRow(ResultSet)</code> method.
+     *
+     * @see #handleRow(ResultSet)
+     */
+    public Object handle(ResultSet rs) throws SQLException {
+        List rows = new ArrayList();
+        while (rs.next()) {
+            rows.add(this.handleRow(rs));
+        }
+        return rows;
+    }
+    
+    /**
+     * Row handler. Method converts current row into some Java object.
+     *
+     * @param rs <code>ResultSet</code> to process.
+     * @return row processing result
+     * @throws SQLException error occurs
+     */
+    protected abstract Object handleRow(ResultSet rs) throws SQLException;
 }

Modified: jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/MapListHandler.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/MapListHandler.java?view=diff&rev=472272&r1=472271&r2=472272
==============================================================================
--- jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/MapListHandler.java
(original)
+++ jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/handlers/MapListHandler.java
Tue Nov  7 13:17:25 2006
@@ -64,7 +64,7 @@
      * @see org.apache.commons.dbutils.handlers.GenericListHandler#handle(ResultSet)
      */
     protected Object handleRow(ResultSet rs) throws SQLException {
-    	return this.convert.toMap(rs);
+        return this.convert.toMap(rs);
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message