org.hibernate.internal.jaxb.mapping.orm.JaxbLockModeType Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-520
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.07.16 at 04:28:05 PM PDT
//
package org.hibernate.internal.jaxb.mapping.orm;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for lock-mode-type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="lock-mode-type">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="READ"/>
* <enumeration value="WRITE"/>
* <enumeration value="OPTIMISTIC"/>
* <enumeration value="OPTIMISTIC_FORCE_INCREMENT"/>
* <enumeration value="PESSIMISTIC_READ"/>
* <enumeration value="PESSIMISTIC_WRITE"/>
* <enumeration value="PESSIMISTIC_FORCE_INCREMENT"/>
* <enumeration value="NONE"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "lock-mode-type")
@XmlEnum
public enum JaxbLockModeType {
READ,
WRITE,
OPTIMISTIC,
OPTIMISTIC_FORCE_INCREMENT,
PESSIMISTIC_READ,
PESSIMISTIC_WRITE,
PESSIMISTIC_FORCE_INCREMENT,
NONE;
public String value() {
return name();
}
public static JaxbLockModeType fromValue(String v) {
return valueOf(v);
}
}