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:50:32
6    */
7   package org.asyrinx.joey.gen.model.rdb;
8   
9   import org.asyrinx.joey.gen.model.Element;
10  
11  /***
12   * @author takeshi
13   */
14  public class PrimaryKeyEntry extends Element {
15  
16      /***
17       * @param parent
18       * @param name
19       */
20      public PrimaryKeyEntry(PrimaryKey parent, Column column) {
21          super(parent, column.getName());
22          this.column = column;
23      }
24  
25      /*
26       * (non-Javadoc)
27       * 
28       * @see org.asyrinx.joey.gen.model.Element#getParentElement()
29       */
30      public PrimaryKey getParent() {
31          return (PrimaryKey) super.getParentElement();
32      }
33  
34      private final Column column;
35  
36      /***
37       * @return Returns the column.
38       */
39      public Column getColumn() {
40          return column;
41      }
42  }