com.sleepycat.je
Class DbInternal

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

public class DbInternal
extends java.lang.Object


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 dbConfigPersistentEquals(DatabaseConfig dbConfig, DatabaseConfig other)
           
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 boolean getCreateUP(EnvironmentConfig config)
          Proxy to EnvironmentConfig.getCreateUP()
static CursorImpl getCursorImpl(Cursor cursor)
          Proxy to Cursor.getCursorImpl()
static boolean getDbConfigReplicated(DatabaseConfig dbConfig)
           
static TransactionConfig getDefaultTxnConfig(Environment env)
          Proxy to Environment.getDefaultTxnConfig()
static Environment getEnvironmentShell(java.io.File environmentHome)
          Get an Environment only if the environment is already open.
static Locker getLocker(Transaction txn)
          Proxy to Transaction.getLocker()
static java.util.Properties getProps(EnvironmentMutableConfig config)
          Proxy to EnvironmentMutableConfig.getProps
static Cursor[] getSortedCursors(JoinCursor cursor)
          Proxy to JoinCursor.getSortedCursors()
static Txn getTxn(Transaction transaction)
           
static boolean getTxnReadCommitted(EnvironmentConfig config)
          Proxy to EnvironmentConfig.setTxnReadCommitted()
static Environment makeEnvironment(java.io.File envHome, EnvironmentConfig config, boolean replicationIntended)
           
static ExceptionEvent makeExceptionEvent(java.lang.Exception e, java.lang.String n)
           
static RunRecoveryException makeNoArgsRRE()
           
static Database openLocalInternalDatabase(Environment env, java.lang.String databaseName, DatabaseConfig dbConfig)
           
static void removeInternalDatabase(Environment env, Transaction txn, java.lang.String databaseName, boolean autoTxnIsReplicated)
           
static OperationStatus retrieveNext(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, GetMode getMode)
          Proxy to Cursor.retrieveNext().
static void setCheckpointUP(EnvironmentConfig config, boolean checkpointUP)
          Proxy to EnvironmentConfig.setCheckpointUP()
static void setCreateUP(EnvironmentConfig config, boolean checkpointUP)
          Proxy to EnvironmentConfig.setCreateUP()
static void setDbConfigReplicated(DatabaseConfig dbConfig, boolean replicated)
           
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()
static long truncateInternalDatabase(Environment env, Transaction txn, java.lang.String databaseName, boolean returnCount, boolean autoTxnIsReplicated)
           
 
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


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


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


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


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 java.lang.IllegalArgumentException
Proxy to EnvironmentMutableConfig.checkImmutablePropsForEquality()

Throws:
java.lang.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 java.util.Properties getProps(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.getProps


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

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(java.io.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.

makeNoArgsRRE

public static RunRecoveryException makeNoArgsRRE()

makeExceptionEvent

public static ExceptionEvent makeExceptionEvent(java.lang.Exception e,
                                                java.lang.String n)

openLocalInternalDatabase

public static Database openLocalInternalDatabase(Environment env,
                                                 java.lang.String databaseName,
                                                 DatabaseConfig dbConfig)
                                          throws DatabaseException
Throws:
DatabaseException

removeInternalDatabase

public static void removeInternalDatabase(Environment env,
                                          Transaction txn,
                                          java.lang.String databaseName,
                                          boolean autoTxnIsReplicated)
                                   throws DatabaseException
Throws:
DatabaseException

truncateInternalDatabase

public static long truncateInternalDatabase(Environment env,
                                            Transaction txn,
                                            java.lang.String databaseName,
                                            boolean returnCount,
                                            boolean autoTxnIsReplicated)
                                     throws DatabaseException
Throws:
DatabaseException

setDbConfigReplicated

public static void setDbConfigReplicated(DatabaseConfig dbConfig,
                                         boolean replicated)

getDbConfigReplicated

public static boolean getDbConfigReplicated(DatabaseConfig dbConfig)

dbConfigPersistentEquals

public static boolean dbConfigPersistentEquals(DatabaseConfig dbConfig,
                                               DatabaseConfig other)

makeEnvironment

public static Environment makeEnvironment(java.io.File envHome,
                                          EnvironmentConfig config,
                                          boolean replicationIntended)
                                   throws DatabaseException
Throws:
DatabaseException

getTxn

public static Txn getTxn(Transaction transaction)