public class DbInternal extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DbInternal.Search
Search mode used with the internal search and searchBoth methods.
|
Constructor and Description |
---|
DbInternal() |
Modifier and Type | Method and Description |
---|---|
static boolean |
advanceCursor(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data)
Proxy to Cursor.advanceCursor()
|
static Transaction |
beginInternalTransaction(Environment env,
TransactionConfig config) |
static void |
checkImmutablePropsForEquality(EnvironmentMutableConfig config,
Properties handleConfigProps)
Proxy to EnvironmentMutableConfig.checkImmutablePropsForEquality()
|
static EnvironmentMutableConfig |
cloneMutableConfig(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.cloneMutableConfig()
|
static void |
closeInternalHandle(Environment env)
Proxy to Environment.closeInternalHandle
|
static void |
copyMutablePropsTo(EnvironmentMutableConfig config,
EnvironmentMutableConfig toConfig)
Proxy to EnvironmentMutableConfig.copyMutablePropsTo()
|
static OperationStatus |
deleteInternal(Cursor cursor,
com.sleepycat.je.log.ReplicationContext repContext)
Proxy to Cursor.deleteInternal()
|
static void |
disableParameterValidation(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.validateParams.
|
static boolean |
getCheckpointUP(EnvironmentConfig config)
Proxy to EnvironmentConfig.getCheckpointUP()
|
static boolean |
getCreateUP(EnvironmentConfig config)
Proxy to EnvironmentConfig.getCreateUP()
|
static com.sleepycat.je.dbi.CursorImpl |
getCursorImpl(Cursor cursor)
Proxy to Cursor.getCursorImpl()
|
static com.sleepycat.je.dbi.DatabaseImpl |
getDatabaseImpl(Database db)
Proxy to Database.getDatabaseImpl()
|
static TransactionConfig |
getDefaultTxnConfig(Environment env)
Proxy to Environment.getDefaultTxnConfig()
|
static com.sleepycat.je.dbi.DiskOrderedCursorImpl |
getDiskOrderedCursorImpl(DiskOrderedCursor cursor) |
static Environment |
getEnvironment(Transaction txn)
Proxy to Transaction.getEnvironment()
|
static com.sleepycat.je.dbi.EnvironmentImpl |
getEnvironmentImpl(Environment env)
Proxy to Environment.getEnvironmentImpl
|
static Environment |
getEnvironmentShell(File environmentHome)
Get an Environment only if the environment is already open.
|
static com.sleepycat.je.txn.Locker |
getLocker(Transaction txn)
Proxy to Transaction.getLocker()
|
static Properties |
getProps(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.getProps
|
static Cursor[] |
getSortedCursors(JoinCursor cursor)
Proxy to JoinCursor.getSortedCursors()
|
static com.sleepycat.je.txn.Txn |
getTxn(Transaction transaction) |
static boolean |
getTxnReadCommitted(EnvironmentConfig config)
Proxy to EnvironmentConfig.setTxnReadCommitted()
|
static void |
invalidate(Database db)
Proxy to Database.invalidate()
|
static Cursor |
makeCursor(com.sleepycat.je.dbi.DatabaseImpl databaseImpl,
com.sleepycat.je.txn.Locker locker,
CursorConfig cursorConfig)
Create a Cursor for internal use from a DatabaseImpl.
|
static ExceptionEvent |
makeExceptionEvent(Exception e,
String n) |
static Database |
openInternalDatabase(Environment env,
Transaction txn,
String databaseName,
DatabaseConfig config) |
static OperationStatus |
position(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode,
boolean first)
Proxy to Cursor.position().
|
static OperationStatus |
putForReplay(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
com.sleepycat.je.tree.LN ln,
com.sleepycat.je.dbi.PutMode putMode,
com.sleepycat.je.log.ReplicationContext repContext)
Proxy to Cursor.putForReplay()
|
static OperationStatus |
retrieveNext(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode,
com.sleepycat.je.dbi.GetMode getMode)
Proxy to Cursor.retrieveNext().
|
static OperationStatus |
search(Cursor cursor,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
DbInternal.Search searchMode,
LockMode lockMode)
Finds the key according to the Search param.
|
static OperationStatus |
search(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode,
com.sleepycat.je.dbi.CursorImpl.SearchMode searchMode)
Proxy to Cursor.search().
|
static OperationStatus |
searchBoth(Cursor cursor,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
DbInternal.Search searchMode,
LockMode lockMode)
Searches with the dups for the given key and finds the dup matching the
pKey value, according to the Search param.
|
static OperationStatus |
searchForReplay(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode,
com.sleepycat.je.dbi.CursorImpl.SearchMode searchMode)
Proxy to Cursor.searchForReplay().
|
static void |
setCheckpointUP(EnvironmentConfig config,
boolean checkpointUP)
Proxy to EnvironmentConfig.setCheckpointUP()
|
static void |
setCreateUP(EnvironmentConfig config,
boolean checkpointUP)
Proxy to EnvironmentConfig.setCreateUP()
|
static void |
setLoadPropertyFile(EnvironmentConfig config,
boolean loadProperties)
Proxy to EnvironmentConfig.setLoadPropertyFile()
|
static void |
setNonCloning(Cursor cursor,
boolean nonSticky)
Deprecated.
use
CursorConfig.setNonSticky(boolean) instead. |
static void |
setPreempted(Database db,
String dbName,
String msg)
Proxy to Database.setPreempted()
|
static void |
setTxnReadCommitted(EnvironmentConfig config,
boolean txnReadCommitted)
Proxy to EnvironmentConfig.setTxnReadCommitted()
|
static void |
setUseExistingConfig(DatabaseConfig config,
boolean useExistingConfig)
Proxy to DatabaseConfig.setUseExistingConfig()
|
static void |
validate(DatabaseConfig config1,
DatabaseConfig config2)
Proxy to DatabaseConfig.validate(DatabaseConfig()
|
public static void invalidate(Database db)
public static void setPreempted(Database db, String dbName, String msg)
public static com.sleepycat.je.dbi.EnvironmentImpl getEnvironmentImpl(Environment env)
public static void closeInternalHandle(Environment env)
public static OperationStatus position(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, boolean first)
public static OperationStatus search(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, com.sleepycat.je.dbi.CursorImpl.SearchMode searchMode)
public static OperationStatus searchForReplay(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, com.sleepycat.je.dbi.CursorImpl.SearchMode searchMode)
public static OperationStatus retrieveNext(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, com.sleepycat.je.dbi.GetMode getMode) throws DatabaseException
DatabaseException
public static boolean advanceCursor(Cursor cursor, DatabaseEntry key, DatabaseEntry data)
public static OperationStatus deleteInternal(Cursor cursor, com.sleepycat.je.log.ReplicationContext repContext)
public static OperationStatus putForReplay(Cursor cursor, DatabaseEntry key, DatabaseEntry data, com.sleepycat.je.tree.LN ln, com.sleepycat.je.dbi.PutMode putMode, com.sleepycat.je.log.ReplicationContext repContext)
public static OperationStatus search(Cursor cursor, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, DbInternal.Search searchMode, LockMode lockMode)
public static OperationStatus searchBoth(Cursor cursor, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, DbInternal.Search searchMode, LockMode lockMode)
public static com.sleepycat.je.dbi.CursorImpl getCursorImpl(Cursor cursor)
public static Cursor makeCursor(com.sleepycat.je.dbi.DatabaseImpl databaseImpl, com.sleepycat.je.txn.Locker locker, CursorConfig cursorConfig)
public static void setNonCloning(Cursor cursor, boolean nonSticky)
CursorConfig.setNonSticky(boolean)
instead.public static com.sleepycat.je.dbi.DatabaseImpl getDatabaseImpl(Database db)
public static Cursor[] getSortedCursors(JoinCursor cursor)
public static void setLoadPropertyFile(EnvironmentConfig config, boolean loadProperties)
public static void setCreateUP(EnvironmentConfig config, boolean checkpointUP)
public static boolean getCreateUP(EnvironmentConfig config)
public static void setCheckpointUP(EnvironmentConfig config, boolean checkpointUP)
public static boolean getCheckpointUP(EnvironmentConfig config)
public static void setTxnReadCommitted(EnvironmentConfig config, boolean txnReadCommitted)
public static boolean getTxnReadCommitted(EnvironmentConfig config)
public static EnvironmentMutableConfig cloneMutableConfig(EnvironmentMutableConfig config)
public static void checkImmutablePropsForEquality(EnvironmentMutableConfig config, Properties handleConfigProps) throws IllegalArgumentException
IllegalArgumentException
public static void copyMutablePropsTo(EnvironmentMutableConfig config, EnvironmentMutableConfig toConfig)
public static void disableParameterValidation(EnvironmentMutableConfig config)
public static Properties getProps(EnvironmentMutableConfig config)
public static void setUseExistingConfig(DatabaseConfig config, boolean useExistingConfig)
public static void validate(DatabaseConfig config1, DatabaseConfig config2) throws DatabaseException
DatabaseException
public static com.sleepycat.je.txn.Locker getLocker(Transaction txn) throws DatabaseException
DatabaseException
public static Environment getEnvironment(Transaction txn) throws DatabaseException
DatabaseException
public static TransactionConfig getDefaultTxnConfig(Environment env)
public static Environment getEnvironmentShell(File environmentHome)
public static Database openInternalDatabase(Environment env, Transaction txn, String databaseName, DatabaseConfig config)
public static Transaction beginInternalTransaction(Environment env, TransactionConfig config)
public static ExceptionEvent makeExceptionEvent(Exception e, String n)
public static com.sleepycat.je.txn.Txn getTxn(Transaction transaction)
public static com.sleepycat.je.dbi.DiskOrderedCursorImpl getDiskOrderedCursorImpl(DiskOrderedCursor cursor)
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.