cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql XSPSQLLibrary.java
Date Fri, 28 Apr 2000 19:18:46 GMT
balld       00/04/28 12:18:46

  Modified:    src/org/apache/cocoon/processor/xsp/library/sql
                        XSPSQLLibrary.java
  Log:
  removed some junk, cleaned up some other junk
  
  Revision  Changes    Path
  1.3       +2 -13     xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/XSPSQLLibrary.java
  
  Index: XSPSQLLibrary.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/XSPSQLLibrary.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XSPSQLLibrary.java	2000/04/24 20:39:25	1.2
  +++ XSPSQLLibrary.java	2000/04/28 19:18:45	1.3
  @@ -60,7 +60,7 @@
    * A processor that performs SQL database queries.
    *
    * @author <a href="mailto:balld@webslingerZ.com">Donald Ball</a>
  - * @version $Revision: 1.2 $ $Date: 2000/04/24 20:39:25 $
  + * @version $Revision: 1.3 $ $Date: 2000/04/28 19:18:45 $
    */
   
   public class XSPSQLLibrary {
  @@ -79,11 +79,6 @@
         String id_attribute_column,
         Integer max_rows,
         Integer skip_rows,
  -      String error_element,
  -      String error_message_attribute,
  -      String error_stacktrace_attribute,
  -      String error_message_text,
  -      String query_creator_name,
         String count_attribute,
         String query_attribute,
         String skip_rows_attribute,
  @@ -105,12 +100,6 @@
           if (row_element_name.equals("")) {
               create_row_elements = false;
           }
  -        if (max_rows.equals("")) {
  -            max_rows = new Integer(-1);
  -        }
  -        if (skip_rows.equals("")) {
  -            skip_rows = new Integer(0);
  -        }
           boolean create_id_attribute = true;
           if (id_attribute.equals("")) {
               create_id_attribute = false;
  @@ -209,7 +198,7 @@
                       row_node.appendChild(column_element);
                   }
                   if (create_row_elements) results_node.appendChild(row_node);
  -                if (count-skip_rows.intValue() == max_rows.intValue()-1) break;
  +                if (max_rows.intValue() != -1 && count-skip_rows.intValue() ==
max_rows.intValue()-1) break;
                   count++;
               }
               rs.close();
  
  
  

Mime
View raw message