All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.shrinkwrap.descriptor.api.orm20.GenerationType Maven / Gradle / Ivy

package org.jboss.shrinkwrap.descriptor.api.orm20; 

/**
 * This class implements the  generation-type  xsd type 
 * @author Ralf Battenfeld
 * @author Andrew Lee Rubinger
 * @author George Gastaldi
 */
public enum GenerationType
{
   _TABLE("TABLE"),
   _SEQUENCE("SEQUENCE"),
   _IDENTITY("IDENTITY"),
   _AUTO("AUTO");

   private String value;

   GenerationType (String value) { this.value = value; }

   public String toString() {return value;}

   public static GenerationType getFromStringValue(String value)
   {
      for(GenerationType type: GenerationType.values())
      {
         if(value != null && type.toString().equals(value))
        { return type;}
      }
      return null;
   }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy