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/10/26 16:00:49
6    */
7   package org.asyrinx.joey.gen.model.rdb;
8   
9   import org.apache.commons.lang.enum.Enum;
10  
11  /***
12   * @author takeshi
13   */
14  public class ForeignKeyType extends Enum {
15  
16      /***
17       * @param arg0
18       */
19      public ForeignKeyType(String name) {
20          super(name);
21      }
22  
23      public static final ForeignKeyType NORMAL = new ForeignKeyType("normal");
24  
25      public static final ForeignKeyType BIDIRECTION = new ForeignKeyType("bidirection");
26  
27      public static final ForeignKeyType EXTENDS = new ForeignKeyType("extends");
28  
29      public static ForeignKeyType get(String name) {
30          return (ForeignKeyType) Enum.getEnum(ForeignKeyType.class, name);
31      }
32  }