dgraham     2003/10/28 16:57:50

  Modified:    dbutils/src/java/org/apache/commons/dbutils
                        BasicRowProcessor.java
  Log:
  Added more toBean() javadocs.
  
  Revision  Changes    Path
  1.5       +33 -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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- BasicRowProcessor.java    26 Oct 2003 00:34:49 -0000      1.4
  +++ BasicRowProcessor.java    29 Oct 2003 00:57:50 -0000      1.5
  @@ -130,8 +130,21 @@
   
       /**
        * Convert a <code>ResultSet</code> row into a JavaBean.  This 
  -     * implementation use reflection and <code>BeanInfo</code> classes to 
  -     * match column names to bean property names.
  +     * 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/>
  +     * <ol>
  +     *     <li>
  +     *     The class has a writable property with the same name as a column.
  +     *     The name comparison is case insensitive.
  +     *     </li>
  +     * 
  +     *     <li>
  +     *     The property's set method parameter type matches the column 
  +     *     type. If the datatypes do not match, the setter will not be called.
  +     *     </li>
  +     * </ol>
        * @see org.apache.commons.dbutils.RowProcessor#toBean(java.sql.ResultSet, 
java.lang.Class)
        */
       public Object toBean(ResultSet rs, Class type) throws SQLException {
  @@ -165,8 +178,21 @@
   
       /**
        * Convert a <code>ResultSet</code> into a List of JavaBeans.  This 
  -     * implementation use reflection and <code>BeanInfo</code> classes to 
  -     * match column names to bean property names.
  +     * 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/>
  +     * <ol>
  +     *     <li>
  +     *     The class has a writable property with the same name as a column.
  +     *     The name comparison is case insensitive.
  +     *     </li>
  +     * 
  +     *     <li>
  +     *     The property's set method parameter type matches the column 
  +     *     type. If the datatypes do not match, the setter will not be called.
  +     *     </li>
  +     * </ol>
        * @see org.apache.commons.dbutils.RowProcessor#toBeanList(java.sql.ResultSet, 
java.lang.Class)
        */
       public List toBeanList(ResultSet rs, Class type) throws SQLException {
  
  
  

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

Reply via email to