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/11/08 14:47:51
    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 takeshi
    14   */
    15  public class PrimaryKey extends ElementSet {
    16
    17      /***
    18       * @param parent
    19       */
    20      public PrimaryKey(Element parent) {
    21          super(parent);
    22      }
    23
    24      /***
    25       * @param parent
    26       * @param name
    27       */
    28      public PrimaryKey(Element parent, String name) {
    29          super(parent, name);
    30      }
    31
    32      /***
    33       * @param parent
    34       * @param name
    35       * @param label
    36       */
    37      public PrimaryKey(Element parent, String name, String label) {
    38          super(parent, name, label);
    39      }
    40
    41      /***
    42       * @param name
    43       */
    44      public PrimaryKey(String name) {
    45          super(name);
    46      }
    47
    48      /*
    49       * (non-Javadoc)
    50       *
    51       * @see org.asyrinx.joey.gen.model.ElementSet#isEntity()
    52       */
    53      public boolean isEntity() {
    54          return true;
    55      }
    56
    57      /*
    58       * (non-Javadoc)
    59       *
    60       * @see org.asyrinx.joey.gen.model.ElementSet#add(org.asyrinx.joey.gen.model.Element)
    61       */
    62      public void add(PrimaryKeyEntry entry) {
    63          super.add(entry);
    64      }
    65
    66      /*
    67       * (non-Javadoc)
    68       *
    69       * @see org.asyrinx.joey.gen.model.ElementSet#contains(org.asyrinx.joey.gen.model.Element)
    70       */
    71      public boolean contains(PrimaryKeyEntry entry) {
    72          return super.contains(entry);
    73      }
    74
    75      /*
    76       * (non-Javadoc)
    77       *
    78       * @see org.asyrinx.joey.gen.model.ElementSet#getElement(int)
    79       */
    80      public PrimaryKeyEntry getEntry(int index) {
    81          return (PrimaryKeyEntry) super.getElement(index);
    82      }
    83
    84      /*
    85       * (non-Javadoc)
    86       *
    87       * @see org.asyrinx.joey.gen.model.ElementSet#getElement(java.lang.String)
    88       */
    89      public PrimaryKeyEntry getEntry(String name) {
    90          return (PrimaryKeyEntry) super.getElement(name);
    91      }
    92
    93      /*
    94       * (non-Javadoc)
    95       *
    96       * @see org.asyrinx.joey.gen.model.ElementSet#removeElement(java.lang.String)
    97       */
    98      public PrimaryKeyEntry removeEntry(String name) {
    99          return (PrimaryKeyEntry) super.removeElement(name);
    100     }
    101
    102 }