You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by fr...@apache.org on 2001/11/09 17:34:51 UTC

cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/results BasicRowSet.java

froehlich    01/11/09 08:34:51

  Added:       apps/db/src/java/org/apache/avalon/db/basic/results
                        BasicRowSet.java
  Log:
  
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/results/BasicRowSet.java
  
  Index: BasicRowSet.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.avalon.db.basic.results;
  
  import org.apache.avalon.db.results.RowSet;
  import org.apache.avalon.db.results.Columns;
  
  import java.util.Vector;
  
  /**
   * This class represents a the BasicRowSet.
   * @author Gerhard Froehlich <a href="mailto:g-froehlich@gmx.de">g-froehlich@gmx.de</a>
   * @version
   */
  public class BasicRowSet implements RowSet {
      private Columns mColumns;
      private Vector mRows;
  
  
      public BasicRowSet(Columns columns, Vector selectedRows) {
          mRows = selectedRows;
          mColumns = columns;
      }
  
      public Columns getColumns() {
          return mColumns;
      }
  
      public int getRowCount() {
          return mRows.size();
      }
  
      public int getPageNumber() {
          return 0;
      }
  
      public Object[] getRow(int ix) {
          return (Object[])mRows.get(ix);
      }
  }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>