Enum SqlJetLockType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SqlJetLockType>

    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)
    • Enum Constant Summary

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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SqlJetLockType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SqlJetLockType[] values()
      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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • values

        public static SqlJetLockType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SqlJetLockType c : SqlJetLockType.values())
            System.out.println(c);
        
        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