Enum SqlJetLockType

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

public enum SqlJetLockType extends java.lang.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().
Author:
TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    An EXCLUSIVE lock precludes all other locks.
    Not locked
    A single process may hold a PENDING lock on a file at any one time.
    A single process may hold a RESERVED lock on a file at any time.
    Any number of processes may hold a SHARED lock simultaneously.
  • Method Summary

    Modifier and Type
    Method
    Description
    valueOf(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null