com.sleepycat.je
Class DbInternal

java.lang.Object
  extended by com.sleepycat.je.DbInternal

public class DbInternal
extends Object


Constructor Summary
DbInternal()
           
 
Method Summary
static boolean advanceCursor(Cursor cursor, DatabaseEntry key, DatabaseEntry data)
          Proxy to Cursor.advanceCursor()
static void checkImmutablePropsForEquality(EnvironmentMutableConfig config, Properties handleConfigProps)
          Proxy to EnvironmentMutableConfig.checkImmutablePropsForEquality()
static EnvironmentMutableConfig cloneMutableConfig(EnvironmentMutableConfig config)
          Proxy to EnvironmentMutableConfig.cloneMutableConfig()
static void copyMutablePropsTo(EnvironmentMutableConfig config, EnvironmentMutableConfig toConfig)
          Proxy to EnvironmentMutableConfig.copyMutablePropsTo()
static OperationStatus deleteInternal(Cursor cursor, 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 CursorImpl getCursorImpl(Cursor cursor)
          Proxy to Cursor.getCursorImpl()
static DatabaseImpl getDatabaseImpl(Database db)
          Proxy to Database.getDatabaseImpl()
static TransactionConfig getDefaultTxnConfig(Environment env)
          Proxy to Environment.getDefaultTxnConfig()
static EnvironmentImpl getEnvironmentImpl(Environment env)
          Proxy to Environment.getEnvironmentImpl
static Environment getEnvironmentShell(File environmentHome)
          Get an Environment only if the environment is already open.
static Locker getLocker(Transaction txn)
          Proxy to Transaction.getLocker()
static Properties getProps(EnvironmentMutableConfig config)
          Proxy to EnvironmentMutableConfig.getProps
static boolean getReplicated(DatabaseConfig dbConfig)
           
static Cursor[] getSortedCursors(JoinCursor cursor)
          Proxy to JoinCursor.getSortedCursors()
static 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(DatabaseImpl databaseImpl, Locker locker, CursorConfig cursorConfig)
          Create a Cursor for internal use from a DatabaseImpl.
static ExceptionEvent makeExceptionEvent(Exception e, String n)
           
static OperationStatus position(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, boolean first)
          Proxy to Cursor.position().
static OperationStatus putLN(Cursor cursor, byte[] key, LN ln, PutMode putMode, ReplicationContext repContext)
          Proxy to Cursor.putLN()
static OperationStatus retrieveNext(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, GetMode getMode)
          Proxy to Cursor.retrieveNext().
static OperationStatus search(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, CursorImpl.SearchMode searchMode)
          Proxy to Cursor.search().
static void setCheckpointUP(EnvironmentConfig config, boolean checkpointUP)
          Proxy to EnvironmentConfig.setCheckpointUP()
static void setCreateUP(EnvironmentConfig config, boolean checkpointUP)
          Proxy to EnvironmentConfig.setCreateUP()
static void setHandleLocker(Database db, Locker locker)
          Proxy to Database.setHandleLockOwnerTxn
static void setLoadPropertyFile(EnvironmentConfig config, boolean loadProperties)
          Proxy to EnvironmentConfig.setLoadPropertyFile()
static void setPreempted(Database db, String dbName, String msg)
          Proxy to Database.setPreempted()
static void setReplicated(DatabaseConfig dbConfig, boolean replicated)
           
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()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbInternal

public DbInternal()
Method Detail

invalidate

public static void invalidate(Database db)
Proxy to Database.invalidate()


setPreempted

public static void setPreempted(Database db,
                                String dbName,
                                String msg)
Proxy to Database.setPreempted()


setHandleLocker

public static void setHandleLocker(Database db,
                                   Locker locker)
Proxy to Database.setHandleLockOwnerTxn


getEnvironmentImpl

public static EnvironmentImpl getEnvironmentImpl(Environment env)
Proxy to Environment.getEnvironmentImpl


position

public static OperationStatus position(Cursor cursor,
                                       DatabaseEntry key,
                                       DatabaseEntry data,
                                       LockMode lockMode,
                                       boolean first)
Proxy to Cursor.position().


search

public static OperationStatus search(Cursor cursor,
                                     DatabaseEntry key,
                                     DatabaseEntry data,
                                     LockMode lockMode,
                                     CursorImpl.SearchMode searchMode)
Proxy to Cursor.search().


retrieveNext

public static OperationStatus retrieveNext(Cursor cursor,
                                           DatabaseEntry key,
                                           DatabaseEntry data,
                                           LockMode lockMode,
                                           GetMode getMode)
                                    throws DatabaseException
Proxy to Cursor.retrieveNext().

Throws:
DatabaseException

advanceCursor

public static boolean advanceCursor(Cursor cursor,
                                    DatabaseEntry key,
                                    DatabaseEntry data)
Proxy to Cursor.advanceCursor()


deleteInternal

public static OperationStatus deleteInternal(Cursor cursor,
                                             ReplicationContext repContext)
Proxy to Cursor.deleteInternal()


putLN

public static OperationStatus putLN(Cursor cursor,
                                    byte[] key,
                                    LN ln,
                                    PutMode putMode,
                                    ReplicationContext repContext)
Proxy to Cursor.putLN()


getCursorImpl

public static CursorImpl getCursorImpl(Cursor cursor)
Proxy to Cursor.getCursorImpl()


makeCursor

public static Cursor makeCursor(DatabaseImpl databaseImpl,
                                Locker locker,
                                CursorConfig cursorConfig)
Create a Cursor for internal use from a DatabaseImpl.


getDatabaseImpl

public static DatabaseImpl getDatabaseImpl(Database db)
Proxy to Database.getDatabaseImpl()


getSortedCursors

public static Cursor[] getSortedCursors(JoinCursor cursor)
Proxy to JoinCursor.getSortedCursors()


setLoadPropertyFile

public static void setLoadPropertyFile(EnvironmentConfig config,
                                       boolean loadProperties)
Proxy to EnvironmentConfig.setLoadPropertyFile()


setCreateUP

public static void setCreateUP(EnvironmentConfig config,
                               boolean checkpointUP)
Proxy to EnvironmentConfig.setCreateUP()


getCreateUP

public static boolean getCreateUP(EnvironmentConfig config)
Proxy to EnvironmentConfig.getCreateUP()


setCheckpointUP

public static void setCheckpointUP(EnvironmentConfig config,
                                   boolean checkpointUP)
Proxy to EnvironmentConfig.setCheckpointUP()


getCheckpointUP

public static boolean getCheckpointUP(EnvironmentConfig config)
Proxy to EnvironmentConfig.getCheckpointUP()


setTxnReadCommitted

public static void setTxnReadCommitted(EnvironmentConfig config,
                                       boolean txnReadCommitted)
Proxy to EnvironmentConfig.setTxnReadCommitted()


getTxnReadCommitted

public static boolean getTxnReadCommitted(EnvironmentConfig config)
Proxy to EnvironmentConfig.setTxnReadCommitted()


cloneMutableConfig

public static EnvironmentMutableConfig cloneMutableConfig(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.cloneMutableConfig()


checkImmutablePropsForEquality

public static void checkImmutablePropsForEquality(EnvironmentMutableConfig config,
                                                  Properties handleConfigProps)
                                           throws IllegalArgumentException
Proxy to EnvironmentMutableConfig.checkImmutablePropsForEquality()

Throws:
IllegalArgumentException

copyMutablePropsTo

public static void copyMutablePropsTo(EnvironmentMutableConfig config,
                                      EnvironmentMutableConfig toConfig)
Proxy to EnvironmentMutableConfig.copyMutablePropsTo()


disableParameterValidation

public static void disableParameterValidation(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.validateParams.


getProps

public static Properties getProps(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.getProps


setUseExistingConfig

public static void setUseExistingConfig(DatabaseConfig config,
                                        boolean useExistingConfig)
Proxy to DatabaseConfig.setUseExistingConfig()


validate

public static void validate(DatabaseConfig config1,
                            DatabaseConfig config2)
                     throws DatabaseException
Proxy to DatabaseConfig.validate(DatabaseConfig()

Throws:
DatabaseException

getLocker

public static Locker getLocker(Transaction txn)
                        throws DatabaseException
Proxy to Transaction.getLocker()

Throws:
DatabaseException

getDefaultTxnConfig

public static TransactionConfig getDefaultTxnConfig(Environment env)
Proxy to Environment.getDefaultTxnConfig()


getEnvironmentShell

public static Environment getEnvironmentShell(File environmentHome)
Get an Environment only if the environment is already open. This will register this Environment in the EnvironmentImpl's reference count, but will not configure the environment.

Returns:
null if the environment is not already open.

makeExceptionEvent

public static ExceptionEvent makeExceptionEvent(Exception e,
                                                String n)

setReplicated

public static void setReplicated(DatabaseConfig dbConfig,
                                 boolean replicated)

getReplicated

public static boolean getReplicated(DatabaseConfig dbConfig)

getTxn

public static Txn getTxn(Transaction transaction)


Copyright (c) 2004-2010 Oracle. All rights reserved.