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/data/impl AbstractNameable.java AbstractRowHolder.java
Date Fri, 09 Nov 2001 14:45:58 GMT
hammant     01/11/09 06:45:58

  Modified:    apps/db/src/java/org/apache/avalon/db/data/impl
                        AbstractRowHolder.java
  Added:       apps/db/src/java/org/apache/avalon/db/basic/data
                        BasicIndex.java
               apps/db/src/java/org/apache/avalon/db/data/impl
                        AbstractNameable.java
  Log:
  start of Index
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/data/BasicIndex.java
  
  Index: BasicIndex.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.data;
  
  import org.apache.avalon.db.data.impl.AbstractNameable;
  import org.apache.avalon.db.data.impl.AbstractRowHolder;
  
  /**
   * Class BasicIndex
   *
   *
   * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
   * @version $Revision: 1.1 $
   */
  public class BasicIndex extends AbstractNameable {
  
      private AbstractRowHolder mAbstractRowHolder;
  
      public BasicIndex(String name, AbstractRowHolder abstractRowHolder) {
          super(name);
          mAbstractRowHolder = abstractRowHolder;
      }
  
  }
  
  
  
  1.3       +3 -16     jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/data/impl/AbstractRowHolder.java
  
  Index: AbstractRowHolder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/data/impl/AbstractRowHolder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractRowHolder.java	2001/10/31 14:42:14	1.2
  +++ AbstractRowHolder.java	2001/11/09 14:45:58	1.3
  @@ -22,11 +22,10 @@
    *
    *
    * @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 AbstractRowHolder implements RowHolder {
  +public abstract class AbstractRowHolder extends AbstractNameable implements RowHolder {
   
  -    private String mName;
       protected Column[] mColumns;
       protected Vector mRows = new Vector();
   
  @@ -40,8 +39,7 @@
        *
        */
       public AbstractRowHolder(String name, Column[] columns) {
  -
  -        mName = name;
  +        super(name);
           mColumns = columns;
       }
   
  @@ -54,17 +52,6 @@
        */
       public Column[] getColumns() {
           return mColumns;
  -    }
  -
  -    /**
  -     * Method getName
  -     *
  -     *
  -     * @return
  -     *
  -     */
  -    public String getName() {
  -        return mName;
       }
   
       /**
  
  
  
  1.1                  jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/data/impl/AbstractNameable.java
  
  Index: AbstractNameable.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.data.impl;
  
  import org.apache.avalon.db.data.Nameable;
  
  /**
   * Class AbstractNameable
   *
   *
   * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
   * @version $Revision: 1.1 $
   */
  public abstract class AbstractNameable implements Nameable {
  
      private String mName;
  
      /**
       * Constructor AbstractNameable
       *
       *
       * @param name
       *
       */
      public AbstractNameable(String name) {
          mName = name;
      }
  
      /**
       * Method getName
       *
       *
       * @return
       *
       */
      public String getName() {
          return mName;
      }
  
  }
  
  
  

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