Enum Class LockMode

java.lang.Object
java.lang.Enum<LockMode>
com.landawn.abacus.util.LockMode
All Implemented Interfaces:
Serializable, Comparable<LockMode>, Constable

public enum LockMode extends Enum<LockMode>
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 Constants
    Enum Constant
    Description
    Deprecated.
    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 bean 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 bean id (but can query by condition) and delete if lock on this level.
    Others can't read by bean id (but can query by condition) and modify(update) if lock on this level.
    Others can't read by bean 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 Type
    Method
    Description
    int
     
    boolean
    isXLockOf(LockMode lockMode)
    Check if this LockMode is locked by the specified byLockMode.
    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[]
    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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • R

      public static final LockMode R
      Others can't read by bean id (but can query by condition) if lock on this level.
    • A

      public static final LockMode A
      Deprecated.
      not supported at present.
      Others can't add(insert) if lock on this level.
    • U

      public static final LockMode U
      Others can't modify(update) if lock on this level.
    • D

      public static final LockMode D
      Others can't delete if lock on this level.
    • RA

      public static final LockMode RA
      Deprecated.
      not supported at present.
      Others can't read by bean id (but can query by condition) and add(insert) if lock on this level.
    • RU

      public static final LockMode RU
      Others can't read by bean id (but can query by condition) and modify(update) if lock on this level.
    • RD

      public static final LockMode RD
      Others can't read by bean id (but can query by condition) and delete if lock on this level.
    • AU

      public static final LockMode AU
      Deprecated.
      not supported at present.
      Others can't add(insert) and modify(update) if lock on this level.
    • UD

      public static final LockMode UD
      Others can't modify(update) and delete if lock on this level.
    • RAU

      public static final LockMode RAU
      Deprecated.
      not supported at present.
      Others can't read by bean id (but can query by condition), add(insert) and modify(update) if lock on this level.
    • RAD

      public static final LockMode RAD
      Deprecated.
      not supported at present.
      Others can't read by bean id (but can query by condition), add(insert) and delete if lock on this level.
    • RUD

      public static final LockMode RUD
      Others can't read by bean id (but can query by condition), modify(update) and delete if lock on this level.
    • AUD

      public static final LockMode AUD
      Deprecated.
      not supported at present.
      Others can't add(insert), modify(update) and delete if lock on this level.
    • RAUD

      public static final LockMode RAUD
      Deprecated.
      not supported at present.
      Others read by bean id (but can query by condition), add(insert), modify(update) and delete if lock on this level.
  • Method Details

    • values

      public static LockMode[] 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

      public static LockMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • intValue

      public int intValue()
      Returns:
      int
    • valueOf

      public static LockMode valueOf(int intValue)
      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 name
      NullPointerException - if the argument is null
    • isXLockOf

      public boolean isXLockOf(LockMode lockMode)
      Check if this LockMode is locked by the specified byLockMode.
      Parameters:
      lockMode -
      Returns:
      boolean