org.jboss.shrinkwrap.descriptor.api.persistence20.PersistenceUnitCachingType Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.persistence20;
/**
* This class implements the persistence-unit-caching-type
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public enum PersistenceUnitCachingType
{
_ALL("ALL"),
_NONE("NONE"),
_ENABLE_SELECTIVE("ENABLE_SELECTIVE"),
_DISABLE_SELECTIVE("DISABLE_SELECTIVE"),
_UNSPECIFIED("UNSPECIFIED");
private String value;
PersistenceUnitCachingType (String value) { this.value = value; }
public String toString() {return value;}
public static PersistenceUnitCachingType getFromStringValue(String value)
{
for(PersistenceUnitCachingType type: PersistenceUnitCachingType.values())
{
if(value != null && type.toString().equals(value))
{ return type;}
}
return null;
}
}