Berkeley DB Java Edition
version 1.5.1

com.sleepycat.je
Class CursorConfig

java.lang.Object
  |
  +--com.sleepycat.je.CursorConfig
All Implemented Interfaces:
Cloneable

public class CursorConfig
extends Object
implements Cloneable

Specify the attributes of database cursor. An instance created with the default constructor is initialized with the system's default settings.


Field Summary
static CursorConfig DIRTY_READ
          A convenience instance for configuring a cursor with the dirty read attribute set to true.
 
Constructor Summary
CursorConfig()
          An instance created using the default constructor is initialized with the system's default settings.
 
Method Summary
 boolean getDirtyRead()
          Returns the setting for the dirtyRead attribute.
 void setDirtyRead(boolean dirtyRead)
          If set to true, all read operations performed by the cursor may return modified but not yet committed data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRTY_READ

public static CursorConfig DIRTY_READ
A convenience instance for configuring a cursor with the dirty read attribute set to true.

Constructor Detail

CursorConfig

public CursorConfig()
An instance created using the default constructor is initialized with the system's default settings.

Method Detail

setDirtyRead

public void setDirtyRead(boolean dirtyRead)
If set to true, all read operations performed by the cursor may return modified but not yet committed data.

The default is false.


getDirtyRead

public boolean getDirtyRead()
Returns the setting for the dirtyRead attribute.

If set to true, all read operations performed by the cursor may return modified but not yet committed data.

Returns:
The setting for the dirtyRead attribute.

Berkeley DB Java Edition
version 1.5.1

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.