001//
002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
003// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 
004// Any modifications to this file will be lost upon recompilation of the source schema. 
005// Generated on: 2018.12.10 at 03:02:30 PM PST 
006//
007
008
009package org.microbean.jpa.jaxb;
010
011import javax.xml.bind.annotation.XmlEnum;
012import javax.xml.bind.annotation.XmlType;
013
014
015/**
016 * <p>Java class for lock-mode-type.
017 * 
018 * <p>The following schema fragment specifies the expected content contained within this class.
019 * <p>
020 * <pre>
021 * &lt;simpleType name="lock-mode-type"&gt;
022 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token"&gt;
023 *     &lt;enumeration value="READ"/&gt;
024 *     &lt;enumeration value="WRITE"/&gt;
025 *     &lt;enumeration value="OPTIMISTIC"/&gt;
026 *     &lt;enumeration value="OPTIMISTIC_FORCE_INCREMENT"/&gt;
027 *     &lt;enumeration value="PESSIMISTIC_READ"/&gt;
028 *     &lt;enumeration value="PESSIMISTIC_WRITE"/&gt;
029 *     &lt;enumeration value="PESSIMISTIC_FORCE_INCREMENT"/&gt;
030 *     &lt;enumeration value="NONE"/&gt;
031 *   &lt;/restriction&gt;
032 * &lt;/simpleType&gt;
033 * </pre>
034 * 
035 */
036@XmlType(name = "lock-mode-type")
037@XmlEnum
038public enum LockModeType {
039
040    READ,
041    WRITE,
042    OPTIMISTIC,
043    OPTIMISTIC_FORCE_INCREMENT,
044    PESSIMISTIC_READ,
045    PESSIMISTIC_WRITE,
046    PESSIMISTIC_FORCE_INCREMENT,
047    NONE;
048
049    public String value() {
050        return name();
051    }
052
053    public static LockModeType fromValue(String v) {
054        return valueOf(v);
055    }
056
057}