public enum AccessMode extends Enum<AccessMode>
accessMode
property of a Version
.Enum Constant and Description |
---|
EXCLUDE
Indicates that this version should be ignored completely.
|
LOCKED
Indicates that one of the sessions holds a lock.
|
LOCKING
Indicates that a session is trying to get a lock.
|
READABLE
Indicates that multiple sessions can read this version.
|
WRITABLE
Indicates that multiple sessions can write this version.
|
Modifier and Type | Method and Description |
---|---|
char |
toChar()
Returns the single character representation of this access mode.
|
static AccessMode |
valueOf(char typeChar)
Returns the access mode constant that corresponds to the given character.
|
static AccessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessMode LOCKING
public static final AccessMode LOCKED
public static final AccessMode READABLE
public static final AccessMode WRITABLE
public static final AccessMode EXCLUDE
public static AccessMode[] values()
for (AccessMode c : AccessMode.values()) System.out.println(c);
public static AccessMode 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 char toChar()
public static AccessMode valueOf(char typeChar)
typeChar
- The single character representation of the requested access modeCopyright © 2013. All Rights Reserved.