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 2005/02/02 16:53:39
    6    */
    7   package org.asyrinx.joey.gen.model.java;
    8
    9   import org.apache.commons.lang.enum.Enum;
    10
    11  /***
    12   * @author takeshi
    13   */
    14  public class EntityKeyType extends Enum {
    15
    16      /***
    17       * @param name
    18       */
    19      public EntityKeyType(String name) {
    20          super(name);
    21      }
    22
    23      public static final EntityKeyType PK = new EntityKeyType("pk");
    24
    25      public static final EntityKeyType INDEX = new EntityKeyType("index");
    26
    27      public static final EntityKeyType UNIQUE = new EntityKeyType("unique");
    28
    29      public static EntityKeyType get(String name) {
    30          return (EntityKeyType) Enum.getEnum(EntityKeyType.class, name);
    31      }
    32
    33  }