public class CursorConfig
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
CursorConfig()
An instance created using the default constructor is initialized with
the system's default settings.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setReadCommittedVoid(boolean readCommitted) |
CursorConfig |
setReadUncommitted(boolean readUncommitted)
Configures read operations performed by the cursor to return modified
but not yet committed data.
|
void |
setReadUncommittedVoid(boolean readUncommitted) |
java.lang.String |
toString()
Returns the values for each configuration attribute.
|
public static final CursorConfig DEFAULT
public static final CursorConfig READ_UNCOMMITTED
public static final CursorConfig READ_COMMITTED
public CursorConfig()
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 void setReadUncommittedVoid(boolean readUncommitted)
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 void setReadCommittedVoid(boolean readCommitted)
public boolean getReadCommitted()
LockMode.READ_COMMITTED
public CursorConfig clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2012 Oracle. All rights reserved.