public class CursorConfig
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description | 
|---|---|
| static CursorConfig | BULK_CURSORA convenience instance to specify the database cursor will be used to make
    bulk changes to the underlying database. | 
| static CursorConfig | DEFAULTDefault configuration used if null is passed to methods that create a
    cursor. | 
| static CursorConfig | DEGREE_2Deprecated. 
 This has been replaced by  READ_COMMITTEDto conform to ANSI database isolation terminology. | 
| static CursorConfig | DIRTY_READDeprecated. 
 This has been replaced by  READ_UNCOMMITTEDto conform to ANSI
    database isolation terminology. | 
| static CursorConfig | READ_COMMITTEDA convenience instance to configure a cursor for read committed isolation. | 
| static CursorConfig | READ_UNCOMMITTEDA convenience instance to configure read operations performed by the
    cursor to return modified but not yet committed data. | 
| static CursorConfig | SNAPSHOTA convenience instance to configure read operations performed by the
    cursor to return values as they were when the cursor was opened, if
     DatabaseConfig.setMultiversion(boolean)is configured. | 
| static CursorConfig | WRITECURSORA convenience instance to specify the Concurrent Data Store environment
    cursor will be used to update the database. | 
| Constructor and Description | 
|---|
| CursorConfig()An instance created using the default constructor is initialized with
    the system's default settings. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | getBulkCursor()Return if the cursor will be used to do bulk operations on the underlying
    database. | 
| boolean | getDegree2()Deprecated. 
 This has been replaced by  getReadCommitted()to conform to ANSI
    database isolation terminology. | 
| boolean | getDirtyRead()Deprecated. 
 This has been replaced by  getReadUncommitted()to
    conform to ANSI database isolation terminology. | 
| boolean | getReadCommitted()Return if the cursor is configured for read committed isolation. | 
| boolean | getReadUncommitted()Return if read operations performed by the cursor are configured to
    return modified but not yet committed data. | 
| boolean | getSnapshot()Return if read operations performed by the cursor are configured to return
    data as it was when the cursor was opened, without locking. | 
| boolean | getWriteCursor()Return if the Concurrent Data Store environment cursor will be used to
    update the database. | 
| void | setBulkCursor(boolean bulkCursor)Specify that the cursor will be used to do bulk operations on the
    underlying database. | 
| void | setDegree2(boolean degree2)Deprecated. 
 This has been replaced by  setReadCommitted(boolean)to conform to ANSI
    database isolation terminology. | 
| void | setDirtyRead(boolean dirtyRead)Deprecated. 
 This has been replaced by  setReadUncommitted(boolean)to
    conform to ANSI database isolation terminology. | 
| void | setReadCommitted(boolean readCommitted)Configure the cursor for read committed isolation. | 
| void | setReadUncommitted(boolean readUncommitted)Configure read operations performed by the cursor to return modified
    but not yet committed data. | 
| void | setSnapshot(boolean snapshot)Configure read operations performed by the cursor to return data as it was
    when the cursor opened without locking, if  DatabaseConfig.setMultiversion(boolean)was configured. | 
| void | setWriteCursor(boolean writeCursor)Specify the Concurrent Data Store environment cursor will be used to
    update the database. | 
public static final CursorConfig DEFAULT
public static final CursorConfig BULK_CURSOR
public static final CursorConfig READ_COMMITTED
This ensures the stability of the current data item read by the cursor but permits data read by this cursor to be modified or deleted prior to the commit of the transaction.
public static final CursorConfig READ_UNCOMMITTED
public static final CursorConfig SNAPSHOT
DatabaseConfig.setMultiversion(boolean) is configured.public static final CursorConfig WRITECURSOR
The underlying Berkeley DB database environment must have been configured as a Concurrent Data Store environment.
public static final CursorConfig DIRTY_READ
READ_UNCOMMITTED to conform to ANSI
    database isolation terminology.public static final CursorConfig DEGREE_2
READ_COMMITTED to conform to ANSI database isolation terminology.This ensures the stability of the current data item read by the cursor but permits data read by this cursor to be modified or deleted prior to the commit of the transaction.
public CursorConfig()
public void setBulkCursor(boolean bulkCursor)
bulkCursor - If true, specify the cursor will be used to do bulk operations on the 
    underlying database.public boolean getBulkCursor()
public void setReadCommitted(boolean readCommitted)
This ensures the stability of the current data item read by the cursor but permits data read by this cursor to be modified or deleted prior to the commit of the transaction.
readCommitted - If true, configure the cursor for read committed isolation.public boolean getReadCommitted()
public void setDegree2(boolean degree2)
setReadCommitted(boolean) to conform to ANSI
    database isolation terminology.This ensures the stability of the current data item read by the cursor but permits data read by this cursor to be modified or deleted prior to the commit of the transaction.
degree2 - If true, configure the cursor for read committed isolation.
        public boolean getDegree2()
getReadCommitted() to conform to ANSI
    database isolation terminology.public void setReadUncommitted(boolean readUncommitted)
readUncommitted - If true, configure read operations performed by the cursor to return
    modified but not yet committed data.public boolean getReadUncommitted()
public void setDirtyRead(boolean dirtyRead)
setReadUncommitted(boolean) to
    conform to ANSI database isolation terminology.dirtyRead - If true, configure read operations performed by the cursor to return
    modified but not yet committed data.
    public boolean getDirtyRead()
getReadUncommitted() to
    conform to ANSI database isolation terminology.public void setSnapshot(boolean snapshot)
DatabaseConfig.setMultiversion(boolean) was configured.
    snapshot - If true, configure read operations performed by the cursor to return
    data as it was when the cursor was opened, without locking.public boolean getSnapshot()
public void setWriteCursor(boolean writeCursor)
writeCursor - If true, specify the Concurrent Data Store environment cursor will be
    used to update the database.public boolean getWriteCursor()
Copyright (c) 2004,2014 Oracle. All rights reserved.