public enum LockModeType extends Enum<LockModeType>
<p>Java class for lock-mode-type.
<p>The following schema fragment specifies the expected content contained within this class. <p> <pre> <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> </pre>
| Enum Constant and Description |
|---|
NONE |
OPTIMISTIC |
OPTIMISTIC_FORCE_INCREMENT |
PESSIMISTIC_FORCE_INCREMENT |
PESSIMISTIC_READ |
PESSIMISTIC_WRITE |
READ |
WRITE |
| Modifier and Type | Method and Description |
|---|---|
static LockModeType |
fromValue(String v) |
String |
value() |
static LockModeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockModeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockModeType READ
public static final LockModeType WRITE
public static final LockModeType OPTIMISTIC
public static final LockModeType OPTIMISTIC_FORCE_INCREMENT
public static final LockModeType PESSIMISTIC_READ
public static final LockModeType PESSIMISTIC_WRITE
public static final LockModeType PESSIMISTIC_FORCE_INCREMENT
public static final LockModeType NONE
public static LockModeType[] values()
for (LockModeType c : LockModeType.values()) System.out.println(c);
public static LockModeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static LockModeType fromValue(String v)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.