com.sleepycat.je
Class DbInternal

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

public class DbInternal
extends Object

For internal use only. It serves to shelter methods that must be public to be used by other BDBJE packages but that are not part of the public api available to applications.


Constructor Summary
DbInternal()
           
 
Method Summary
static boolean advanceCursor(Cursor cursor, DatabaseEntry key, DatabaseEntry data)
          Proxy to Cursor.advanceCursor()
static void checkImmutablePropsForEquality(EnvironmentMutableConfig config, EnvironmentMutableConfig passedConfig)
          Proxy to EnvironmentMutableConfig.checkImmutablePropsForEquality()
static EnvironmentConfig cloneConfig(EnvironmentConfig config)
          Proxy to EnvironmentConfig.cloneConfig()
static EnvironmentMutableConfig cloneMutableConfig(EnvironmentMutableConfig config)
          Proxy to EnvironmentMutableConfig.cloneMutableConfig()
static void copyMutablePropsTo(EnvironmentMutableConfig config, EnvironmentMutableConfig toConfig)
          Proxy to EnvironmentMutableConfig.copyMutablePropsTo()
static void databaseConfigValidate(DatabaseConfig config1, DatabaseConfig config2)
          Proxy to DatabaseConfig.match(DatabaseConfig()
static boolean dataEquals(DatabaseEntry e1, DatabaseEntry e2)
          Proxy to DatabaseEntry.dataEquals()
static DatabaseImpl dbGetDatabaseImpl(Database db)
          Proxy to Database.getDatabase()
static void dbInvalidate(Database db)
          Proxy to Database.invalidate()
static void dbSetHandleLocker(Database db, Locker locker)
          Proxy to Database.setHandleLockOwnerTxn
static void disableParameterValidation(EnvironmentMutableConfig config)
          Proxy to EnvironmentMutableConfig.validateParams.
static EnvironmentImpl envGetEnvironmentImpl(Environment env)
          Proxy to Environment.getDbEnvironment
static boolean getCheckpointUP(EnvironmentConfig config)
          Proxy to EnvironmentConfig.getCheckpointUP()
static CursorImpl getCursorImpl(Cursor cursor)
          Proxy to Cursor.getCursorImpl()
static TransactionConfig getDefaultTxnConfig(Environment env)
          Proxy to Environment.getDefaultTxnConfig()
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 Cursor[] getSortedCursors(JoinCursor cursor)
          Proxy to JoinCursor.getSortedCursors()
static boolean getTxnReadCommitted(EnvironmentConfig config)
          Proxy to EnvironmentConfig.setTxnReadCommitted()
static Cursor newCursor(DatabaseImpl dbImpl, Locker locker, CursorConfig cursorConfig)
          Proxy to new Cursor(DatabaseImpl, Locker, CursorConfig)
static OperationStatus position(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, boolean first)
          Proxy to new Cursor.position().
static OperationStatus retrieveNext(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, GetMode getMode)
          Proxy to new Cursor.retrieveNext().
static void setCheckpointUP(EnvironmentConfig config, boolean checkpointUP)
          Proxy to EnvironmentConfig.setCheckpointUP()
static void setLoadPropertyFile(EnvironmentConfig config, boolean loadProperties)
          Proxy to EnvironmentConfig.setLoadPropertyFile()
static void setTxnReadCommitted(EnvironmentConfig config, boolean txnReadCommitted)
          Proxy to EnvironmentConfig.setTxnReadCommitted()
static void setUseExistingConfig(DatabaseConfig config, boolean useExistingConfig)
          Proxy to DatabaseConfig.setUseExistingConfig()
 
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

dbInvalidate

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


dbSetHandleLocker

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


envGetEnvironmentImpl

public static EnvironmentImpl envGetEnvironmentImpl(Environment env)
Proxy to Environment.getDbEnvironment


newCursor

public static Cursor newCursor(DatabaseImpl dbImpl,
                               Locker locker,
                               CursorConfig cursorConfig)
                        throws DatabaseException
Proxy to new Cursor(DatabaseImpl, Locker, CursorConfig)

Throws:
DatabaseException

position

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

Throws:
DatabaseException

retrieveNext

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

Throws:
DatabaseException

advanceCursor

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


getCursorImpl

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


dbGetDatabaseImpl

public static DatabaseImpl dbGetDatabaseImpl(Database db)
Proxy to Database.getDatabase()


getSortedCursors

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


setLoadPropertyFile

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


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()


cloneConfig

public static EnvironmentConfig cloneConfig(EnvironmentConfig config)
Proxy to EnvironmentConfig.cloneConfig()


cloneMutableConfig

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


checkImmutablePropsForEquality

public static void checkImmutablePropsForEquality(EnvironmentMutableConfig config,
                                                  EnvironmentMutableConfig passedConfig)
                                           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.


setUseExistingConfig

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


databaseConfigValidate

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

Throws:
DatabaseException

dataEquals

public static boolean dataEquals(DatabaseEntry e1,
                                 DatabaseEntry e2)
Proxy to DatabaseEntry.dataEquals()


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 Enviroment in the EnvironmentImpl's reference count, but will not configure the environment.

Returns:
null if the environment is not already open.


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.