|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.CursorConfig
public class CursorConfig
Specifies the attributes of database cursor. An instance created with the default constructor is initialized with the system's default settings.
Field Summary | |
---|---|
static CursorConfig |
DEFAULT
Default configuration used if null is passed to methods that create a cursor. |
static CursorConfig |
READ_COMMITTED
A convenience instance to configure a cursor for read committed isolation. |
static CursorConfig |
READ_UNCOMMITTED
A convenience instance to configure read operations performed by the cursor to return modified but not yet committed data. |
Constructor Summary | |
---|---|
CursorConfig()
An instance created using the default constructor is initialized with the system's default settings. |
Method Summary | |
---|---|
CursorConfig |
clone()
Returns a copy of this configuration object. |
boolean |
getReadCommitted()
Returns true if read operations performed by the cursor are configured to obey read committed isolation. |
boolean |
getReadUncommitted()
Returns true if read operations performed by the cursor are configured to return modified but not yet committed data. |
CursorConfig |
setReadCommitted(boolean readCommitted)
Configures read operations performed by the cursor to obey read committed isolation. |
CursorConfig |
setReadUncommitted(boolean readUncommitted)
Configures read operations performed by the cursor to return modified but not yet committed data. |
String |
toString()
Returns the values for each configuration attribute. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CursorConfig DEFAULT
public static final CursorConfig READ_UNCOMMITTED
public static final CursorConfig READ_COMMITTED
Constructor Detail |
---|
public CursorConfig()
Method Detail |
---|
public CursorConfig setReadUncommitted(boolean readUncommitted)
readUncommitted
- If true, configure read operations performed by
the cursor to return modified but not yet committed data.
LockMode.READ_UNCOMMITTED
public boolean getReadUncommitted()
LockMode.READ_UNCOMMITTED
public CursorConfig setReadCommitted(boolean readCommitted)
readCommitted
- If true, configure read operations performed by
the cursor to obey read committed isolation.
LockMode.READ_COMMITTED
public boolean getReadCommitted()
LockMode.READ_COMMITTED
public CursorConfig clone()
clone
in class Object
public String toString()
toString
in class Object
|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |