PersistenceContextTypeType.java
package org.jboss.shrinkwrap.descriptor.api.javaee6;
/**
* This class implements the <code> persistence-context-typeType </code> xsd type
*/
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;
}
}