com.sleepycat.je
Class DbInternal

java.lang.Object
  extended bycom.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 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 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 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 Cursor[] getSortedCursors(JoinCursor cursor)
          Proxy to JoinCursor.getSortedCursors()
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 setUseExistingConfig(DatabaseConfig config, boolean useExistingConfig)
          Proxy to DatabaseConfig.setUseExistingConfig()
static Locker transactionGetTxn(Transaction txn)
           
 
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

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


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


setUseExistingConfig

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


dataEquals

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


transactionGetTxn

public static Locker transactionGetTxn(Transaction txn)
                                throws DatabaseException
Throws:
DatabaseException


Copyright 2004 Sleepycat, Inc. All Rights Reserved.