public enum ConcurrencyType extends Enum<ConcurrencyType>
Java class for ConcurrencyType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ConcurrencyType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="optimistic"/>
<enumeration value="pessimistic"/>
<enumeration value="origination"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
OPTIMISTIC
Indicates a UML Property stores information related optimistic concurrency for its containing UML Class and participates in optimistic concurrency control operations and strategies.
|
ORIGINATION
Indicates a UML Property stores origination information for its containing UML Class.
|
PESSIMISTIC
Indicates a UML Property stores information related to a pessimistic concurrency control strategy (often termed locking) and participates in pessimistic concurrency control operations.
|
| Modifier and Type | Method and Description |
|---|---|
static ConcurrencyType |
fromValue(String v) |
String |
value() |
static ConcurrencyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConcurrencyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConcurrencyType OPTIMISTIC
public static final ConcurrencyType PESSIMISTIC
public static final ConcurrencyType ORIGINATION
public static ConcurrencyType[] values()
for (ConcurrencyType c : ConcurrencyType.values()) System.out.println(c);
public static ConcurrencyType 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 ConcurrencyType fromValue(String v)
Copyright © 2019. All rights reserved.