Package uk.co.sculptor.kflibjava
Enum Class KeyedFile.LockMode
- All Implemented Interfaces:
Serializable
,Comparable<KeyedFile.LockMode>
,Constable
- Enclosing class:
KeyedFile
KeyedFile lock mode enumerator.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
getByte()
Returns the KeyedFile lock mode as the byte value used on KfServerstatic KeyedFile.LockMode
getFromByte
(byte lockMode) Convert a received value to a LockMode enumeratorstatic KeyedFile.LockMode
Returns the enum constant of this class with the specified name.static KeyedFile.LockMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No lock -
RDLCK
Read lock -
WRLCK
Write lock -
UNLCK
Unlock -
TWLCK
Transaction Write lock
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFromByte
Convert a received value to a LockMode enumerator- Parameters:
lockMode
- The Sculptor value to be translated to enumerator- Returns:
- The enumerator value
- Throws:
KfException
- when the lckMode value is invalid
-
getByte
public byte getByte()Returns the KeyedFile lock mode as the byte value used on KfServer- Returns:
- KeyedFile lock mode as the byte value used on KfServer
-