commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r480262 - /jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java
Date Tue, 28 Nov 2006 22:55:32 GMT
Author: bayard
Date: Tue Nov 28 14:55:31 2006
New Revision: 480262

URL: http://svn.apache.org/viewvc?view=rev&rev=480262
Log:
Improved Javadoc

Modified:
    jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java

Modified: jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java?view=diff&rev=480262&r1=480261&r2=480262
==============================================================================
--- jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java
(original)
+++ jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java
Tue Nov 28 14:55:31 2006
@@ -109,6 +109,11 @@
      * <code>null</code> when SQL NULL is returned.  This is the same behavior
      * as the <code>ResultSet</code> get* methods.
      * </p>
+     *
+     * @param rs ResultSet that supplies the bean data
+     * @param type Class from which to create the bean instance
+     * @throws SQLException - if a database access error occurs
+     * @return the newly created bean
      */
     public Object toBean(ResultSet rs, Class type) throws SQLException {
 
@@ -147,6 +152,12 @@
      * <code>null</code> when SQL NULL is returned.  This is the same behavior
      * as the <code>ResultSet</code> get* methods.
      * </p>
+     *
+     * @param rs ResultSet that supplies the bean data
+     * @param type Class from which to create the bean instance
+     * @throws SQLException - if a database access error occurs
+     * @return the newly created List of beans
+     */
      */
     public List toBeanList(ResultSet rs, Class type) throws SQLException {
         List results = new ArrayList();
@@ -174,7 +185,7 @@
      * @param props The property descriptors.
      * @param columnToProperty The column indices in the result set.
      * @return An initialized object.
-     * @throws SQLException If a database error occurs.
+     * @throws SQLException - if a database error occurs.
      */
     private Object createBean(ResultSet rs, Class type,
             PropertyDescriptor[] props, int[] columnToProperty)
@@ -367,7 +378,7 @@
      * 
      * @param props The bean property descriptors.
      * 
-     * @throws SQLException 
+     * @throws SQLException - if a database access error occurs
      *
      * @return An int[] with column index to property index mappings.  The 0th 
      * element is meaningless because JDBC column indexing starts at 1.
@@ -414,7 +425,7 @@
      * @param propType The bean property type that this column needs to be
      * converted into.
      * 
-     * @throws SQLException
+     * @throws SQLException- if a database access error occurs
      * 
      * @return The object from the <code>ResultSet</code> at the given column
      * index after optional type processing or <code>null</code> if the column



---------------------------------------------------------------------
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