dgraham     2003/10/28 17:05:57

  Modified:    dbutils/src/java/org/apache/commons/dbutils
                        BasicRowProcessor.java
  Log:
  Added toArray() and toMap() javadocs.
  
  Revision  Changes    Path
  1.6       +19 -7     
jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/BasicRowProcessor.java
  
  Index: BasicRowProcessor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/BasicRowProcessor.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BasicRowProcessor.java    29 Oct 2003 00:57:50 -0000      1.5
  +++ BasicRowProcessor.java    29 Oct 2003 01:05:56 -0000      1.6
  @@ -113,7 +113,13 @@
           super();
       }
   
  -    // See interface for javadoc.
  +    /**
  +     * Convert a <code>ResultSet</code> row into an <code>Object[]</code>.
  +     * This implementation copies column values into the array in the same 
  +     * order they're returned from the <code>ResultSet</code>.  Array elements
  +     * will be set to <code>null</code> if the column was SQL NULL. 
  +     * @see org.apache.commons.dbutils.RowProcessor#toArray(java.sql.ResultSet)
  +     */
       public Object[] toArray(ResultSet rs) throws SQLException {
           ResultSetMetaData meta = rs.getMetaData();
           int cols = meta.getColumnCount();
  @@ -177,8 +183,8 @@
       }
   
       /**
  -     * Convert a <code>ResultSet</code> into a List of JavaBeans.  This 
  -     * implementation uses reflection and <code>BeanInfo</code> classes to 
  +     * Convert a <code>ResultSet</code> into a <code>List</code> of JavaBeans.  
  +     * This implementation uses reflection and <code>BeanInfo</code> classes to 
        * match column names to bean property names. Properties are matched to 
        * columns based on several factors:
        * <br/>
  @@ -265,7 +271,13 @@
           return columnNameToIndex;
       }
   
  -    // See interface for javadoc.
  +    /**
  +     * Convert a <code>ResultSet</code> row into a <code>Map</code>.  This 
  +     * implementation returns a <code>Map</code> with case insensitive column
  +     * names as keys.  Calls to <code>map.get("COL")</code> and 
  +     * <code>map.get("col")</code> return the same value.
  +     * @see org.apache.commons.dbutils.RowProcessor#toMap(java.sql.ResultSet)
  +     */
       public Map toMap(ResultSet rs) throws SQLException {
           Map result = new CaseInsensitiveHashMap();
           ResultSetMetaData rsmd = rs.getMetaData();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to