|
Berkeley DB version 5.2.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sleepycat.db.LockMode
public final class LockMode
Locking modes for database operations. Locking modes are required parameters for operations that retrieve data or modify the database.
Field Summary | |
---|---|
static LockMode |
DEFAULT
Acquire read locks for read operations and write locks for write operations. |
static LockMode |
DEGREE_2
Deprecated. This has been replaced by READ_COMMITTED to conform to ANSI
database isolation terminology. |
static LockMode |
DIRTY_READ
Deprecated. This has been replaced by READ_UNCOMMITTED to conform to ANSI
database isolation terminology. |
static LockMode |
IGNORE_LEASES
Return the data item irrespective of the state of master leases. |
static LockMode |
READ_COMMITTED
Read committed isolation provides for cursor stability but not repeatable reads. |
static LockMode |
READ_UNCOMMITTED
Read modified but not yet committed data. |
static LockMode |
RMW
Acquire write locks instead of read locks when doing the retrieval. |
Method Summary | |
---|---|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LockMode DEFAULT
public static final LockMode READ_UNCOMMITTED
public static final LockMode READ_COMMITTED
Note that this LockMode may only be passed to Database
get
methods, not to Cursor
methods. To configure a cursor for
Read committed isolation, use CursorConfig.setReadCommitted(boolean)
.
public static final LockMode RMW
public static final LockMode DIRTY_READ
READ_UNCOMMITTED
to conform to ANSI
database isolation terminology.
public static final LockMode DEGREE_2
READ_COMMITTED
to conform to ANSI
database isolation terminology.
Note that this LockMode may only be passed to Database
get
methods, not to Cursor
methods. To configure a cursor for
Read committed isolation, use CursorConfig.setReadCommitted(boolean)
.
public static final LockMode IGNORE_LEASES
Method Detail |
---|
public String toString()
toString
in class Object
|
Berkeley DB version 5.2.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |