org.jboss.shrinkwrap.descriptor.api.javaee5.PersistenceContextTypeType Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.javaee5;
/**
* This class implements the persistence-context-typeType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public enum PersistenceContextTypeType
{
_TRANSACTION("Transaction"),
_EXTENDED("Extended");
private String value;
PersistenceContextTypeType (String value) { this.value = value; }
public String toString() {return value;}
public static PersistenceContextTypeType getFromStringValue(String value)
{
for(PersistenceContextTypeType type: PersistenceContextTypeType.values())
{
if(value != null && type.toString().equals(value))
{ return type;}
}
return null;
}
}