Enum SqlJetLockType
- All Implemented Interfaces:
Serializable
,Comparable<SqlJetLockType>
,java.lang.constant.Constable
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
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn EXCLUSIVE lock precludes all other locks.Not lockedA 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 TypeMethodDescriptionstatic SqlJetLockType
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.
-
Enum Constant Details
-
NONE
Not locked -
SHARED
Any number of processes may hold a SHARED lock simultaneously. -
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
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
An EXCLUSIVE lock precludes all other locks.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-