Package com.landawn.abacus.util
Enum Class LockMode
- All Implemented Interfaces:
Serializable
,Comparable<LockMode>
,Constable
R
--- Read; A
--- Add; U
--- Update; D
--- Delete.- Since:
- 0.8
- Author:
- Haiyang Li
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.not supported at present.Deprecated.not supported at present.Deprecated.not supported at present.Deprecated.not supported at present.Others can't delete if lock on this level.Others can't read by entity id (but can query by condition) if lock on this level.Deprecated.not supported at present.Deprecated.not supported at present.Deprecated.not supported at present.Deprecated.not supported at present.Others can't read by entity id (but can query by condition) and delete if lock on this level.Others can't read by entity id (but can query by condition) and modify(update) if lock on this level.Others can't read by entity id (but can query by condition), modify(update) and delete if lock on this level.Others can't modify(update) if lock on this level.Others can't modify(update) and delete if lock on this level. -
Method Summary
Modifier and TypeMethodDescriptionint
intValue()
boolean
Check if thisLockMode
is locked by the specifiedbyLockMode
.static LockMode
valueOf
(int intValue) Returns the enum constant of this class with the specified name.static LockMode
Returns the enum constant of this class with the specified name.static LockMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
R
Others can't read by entity id (but can query by condition) if lock on this level. -
A
Deprecated.not supported at present.Others can't add(insert) if lock on this level. -
U
Others can't modify(update) if lock on this level. -
D
Others can't delete if lock on this level. -
RA
Deprecated.not supported at present.Others can't read by entity id (but can query by condition) and add(insert) if lock on this level. -
RU
Others can't read by entity id (but can query by condition) and modify(update) if lock on this level. -
RD
Others can't read by entity id (but can query by condition) and delete if lock on this level. -
AU
Deprecated.not supported at present.Others can't add(insert) and modify(update) if lock on this level. -
AD
Deprecated.not supported at present.Others can't add(insert) and delete if lock on this level. -
UD
Others can't modify(update) and delete if lock on this level. -
RAU
Deprecated.not supported at present.Others can't read by entity id (but can query by condition), add(insert) and modify(update) if lock on this level. -
RAD
Deprecated.not supported at present.Others can't read by entity id (but can query by condition), add(insert) and delete if lock on this level. -
RUD
Others can't read by entity id (but can query by condition), modify(update) and delete if lock on this level. -
AUD
Deprecated.not supported at present.Others can't add(insert), modify(update) and delete if lock on this level. -
RAUD
Deprecated.not supported at present.Others read by entity id (but can query by condition), add(insert), modify(update) and delete if lock on this level.
-
-
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
-
intValue
public int intValue()- Returns:
- int
-
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:
intValue
- 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
-
isXLockOf
Check if thisLockMode
is locked by the specifiedbyLockMode
.- Parameters:
lockMode
-- Returns:
- boolean
-