|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SqlJetLockType>
org.tmatesoft.sqljet.core.internal.SqlJetLockType
public 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 Summary | |
---|---|
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 | |
---|---|
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 |
---|
public static final SqlJetLockType NONE
public static final SqlJetLockType SHARED
public static final SqlJetLockType RESERVED
public static final SqlJetLockType PENDING
public static final SqlJetLockType EXCLUSIVE
Method Detail |
---|
public static SqlJetLockType[] values()
for (SqlJetLockType c : SqlJetLockType.values()) System.out.println(c);
public static SqlJetLockType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |