View Javadoc

    1   /*
    2    * joey-gen and its relative products are published under the terms
    3    * of the Apache Software License.
    4    *
    5    * Created on 2004/08/10 16:58:59
    6    */
    7   package org.asyrinx.joey.gen.model.rdb;
    8
    9   import org.asyrinx.joey.gen.model.Element;
    10  import org.asyrinx.joey.gen.model.ElementSet;
    11
    12  /***
    13   * @author akima
    14   */
    15  public class ColumnSet extends ElementSet {
    16
    17      /***
    18       * @param parent
    19       * @param isEntity
    20       */
    21      public ColumnSet(Element parent) {
    22          super(parent);
    23      }
    24
    25      /*
    26       * (non-Javadoc)
    27       *
    28       * @see org.asyrinx.joey.gen.model.ElementSet#isEntity()
    29       */
    30      public boolean isEntity() {
    31          return false;
    32      }
    33
    34      public void add(Column column) {
    35          super.add(column);
    36      }
    37
    38      /*
    39       * (non-Javadoc)
    40       *
    41       * @see org.asyrinx.joey.gen.model.ElementSet#contains(org.asyrinx.joey.gen.model.Element)
    42       */
    43      public boolean contains(Column column) {
    44          return super.contains(column);
    45      }
    46
    47      /*
    48       * (non-Javadoc)
    49       *
    50       * @see org.asyrinx.joey.gen.model.ElementSet#getElement(int)
    51       */
    52      public Column getColumn(int index) {
    53          return (Column) super.getElement(index);
    54      }
    55
    56      //private final Log log = LogFactory.getLog(this.getClass());
    57
    58      /*
    59       * (non-Javadoc)
    60       *
    61       * @see org.asyrinx.joey.gen.model.ElementSet#get(java.lang.String)
    62       */
    63      public Column getColumn(String name) {
    64          final Column result = (Column) super.getElement(name);
    65          return result;
    66      }
    67
    68      /*
    69       * (non-Javadoc)
    70       *
    71       * @see org.asyrinx.joey.gen.model.ElementSet#remove(java.lang.String)
    72       */
    73      public Column removeColumn(String name) {
    74          return (Column) super.removeElement(name);
    75      }
    76  }