avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/bcel/data BCELTable.java
Date Mon, 05 Nov 2001 18:49:49 GMT
hammant     01/11/05 10:49:49

  Modified:    apps/db/src/java/org/apache/avalon/db/data/impl
                        AbstractTable.java
               apps/db/src/java/org/apache/avalon/db/bcel/data
                        BCELTable.java
  Log:
  DefaultTable abolished
  
  Revision  Changes    Path
  1.3       +21 -1     jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/data/impl/AbstractTable.java
  
  Index: AbstractTable.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/data/impl/AbstractTable.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractTable.java	2001/10/31 14:42:14	1.2
  +++ AbstractTable.java	2001/11/05 18:49:49	1.3
  @@ -14,16 +14,23 @@
   import org.apache.avalon.db.data.RowHolder;
   import org.apache.avalon.db.data.Column;
   
  +import java.util.Vector;
  +import java.util.Collections;
  +import java.util.Collection;
   
  +
   /**
    * Class AbstractTable
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public abstract class AbstractTable extends AbstractRowHolder implements Table {
   
  +
  +    private Vector rows = new Vector();
  +
       /**
        * Constructor AbstractTable
        *
  @@ -36,4 +43,17 @@
       public AbstractTable(String name, Column[] columns) {
           super(name, columns);
       }
  +
  +    public void addRow(AbstractTableRow atr) {
  +        rows.add(atr);
  +    }
  +
  +    public void removeRow(AbstractTableRow atr) {
  +        rows.remove(atr);
  +    }
  +
  +    public Collection getRows() {
  +        return Collections.unmodifiableCollection(rows);
  +    }
  +
   }
  
  
  
  1.3       +2 -2      jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/bcel/data/BCELTable.java
  
  Index: BCELTable.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/bcel/data/BCELTable.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BCELTable.java	2001/11/04 23:34:40	1.2
  +++ BCELTable.java	2001/11/05 18:49:49	1.3
  @@ -8,10 +8,10 @@
    */
   package org.apache.avalon.db.bcel.data;
   
  -import org.apache.avalon.db.data.impl.DefaultTable;
  +import org.apache.avalon.db.data.impl.AbstractTable;
   import org.apache.avalon.db.data.Column;
   
  -public class BCELTable extends DefaultTable {
  +public class BCELTable extends AbstractTable {
   
       protected Class mRowClass;
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message