public class ReadOptions
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
ReadOptions()
Constructs a ReadOptions object with default values for all properties.
|
| Modifier and Type | Method and Description |
|---|---|
ReadOptions |
clone() |
CacheMode |
getCacheMode()
Returns the
CacheMode to be used for the operation, or null
if the Cursor, Database or Environment default will be used. |
LockMode |
getLockMode()
Returns the
LockMode to be used for the operation. |
ReadOptions |
setCacheMode(CacheMode cacheMode)
Sets the
CacheMode to be used for the operation. |
ReadOptions |
setLockMode(LockMode lockMode)
Sets the
LockMode to be used for the operation. |
public ReadOptions()
public ReadOptions clone()
clone in class java.lang.Objectpublic ReadOptions setCacheMode(CacheMode cacheMode)
CacheMode to be used for the operation.
By default this property is null, meaning that the default specified
using Cursor.setCacheMode(com.sleepycat.je.CacheMode),
DatabaseConfig.setCacheMode(com.sleepycat.je.CacheMode) or
EnvironmentMutableConfig.setCacheMode(com.sleepycat.je.CacheMode) will be used.
cacheMode - is the CacheMode used for the operation, or
null to use the Cursor, Database or Environment default.public CacheMode getCacheMode()
CacheMode to be used for the operation, or null
if the Cursor, Database or Environment default will be used.setCacheMode(CacheMode)public ReadOptions setLockMode(LockMode lockMode)
LockMode to be used for the operation.
By default this property is LockMode.DEFAULT.
lockMode - the locking attributes. Specifying null or
LockMode.READ_COMMITTED is not allowed.public LockMode getLockMode()
LockMode to be used for the operation.setLockMode(LockMode)Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.