Enum SqlJetLockType

java.lang.Object
java.lang.Enum<SqlJetLockType>
org.tmatesoft.sqljet.core.internal.SqlJetLockType
All Implemented Interfaces:
Serializable, Comparable<SqlJetLockType>, java.lang.constant.Constable

public enum SqlJetLockType extends Enum<SqlJetLockType>
Transaction locks types. PENDING lock may not be passed directly to lock(). Instead, a process that requests an EXCLUSIVE lock may actually obtain a PENDING lock. This can be upgraded to an EXCLUSIVE lock by a subsequent call to lock().
  • Enum Constant Details

    • NONE

      public static final SqlJetLockType NONE
      Not locked
    • SHARED

      public static final SqlJetLockType SHARED
      Any number of processes may hold a SHARED lock simultaneously.
    • RESERVED

      public static final SqlJetLockType RESERVED
      A single process may hold a RESERVED lock on a file at any time. Other processes may hold and obtain new SHARED locks.
    • PENDING

      public static final SqlJetLockType PENDING
      A single process may hold a PENDING lock on a file at any one time. Existing SHARED locks may persist, but no new SHARED locks may be obtained by other processes.
    • EXCLUSIVE

      public static final SqlJetLockType EXCLUSIVE
      An EXCLUSIVE lock precludes all other locks.
  • Method Details

    • values

      public static SqlJetLockType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SqlJetLockType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null