org.hibernate.boot.jaxb.cfg.spi.JaxbCfgCacheUsageEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.04.30 at 01:51:01 PM PDT
//
package org.hibernate.boot.jaxb.cfg.spi;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for CacheUsageEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="CacheUsageEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="nonstrict-read-write"/>
* <enumeration value="read-only"/>
* <enumeration value="read-write"/>
* <enumeration value="transactional"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "CacheUsageEnum", namespace = "http://www.hibernate.org/xsd/orm/cfg")
@XmlEnum
public enum JaxbCfgCacheUsageEnum {
@XmlEnumValue("nonstrict-read-write")
NONSTRICT_READ_WRITE("nonstrict-read-write"),
@XmlEnumValue("read-only")
READ_ONLY("read-only"),
@XmlEnumValue("read-write")
READ_WRITE("read-write"),
@XmlEnumValue("transactional")
TRANSACTIONAL("transactional");
private final String value;
JaxbCfgCacheUsageEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static JaxbCfgCacheUsageEnum fromValue(String v) {
for (JaxbCfgCacheUsageEnum c: JaxbCfgCacheUsageEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}