Logo Search packages:      
Sourcecode: db version File versions

com::sleepycat::compat::DbCompat Class Reference

List of all members.


Detailed Description

A minimal set of DB-JE compatibility methods for internal use only. Two versions are maintained in parallel in the DB and JE source trees. Used by the collections package.

Definition at line 37 of file DbCompat.java.


Static Public Member Functions

static OperationStatus append (Database db, Transaction txn, DatabaseEntry key, DatabaseEntry data) throws DatabaseException
static CursorConfig cloneCursorConfig (CursorConfig config)
static boolean getBtreeRecordNumbers (DatabaseConfig dbConfig)
static OperationStatus getCurrentRecordNumber (Cursor cursor, DatabaseEntry key, LockMode lockMode) throws DatabaseException
static long getDatabaseCount (Database db) throws DatabaseException
static String getDatabaseFile (Database db) throws DatabaseException
static boolean getInitializeCDB (EnvironmentConfig config)
static boolean getInitializeLocking (EnvironmentConfig config)
static boolean getReadUncommitted (DatabaseConfig dbConfig)
static int getRecordNumber (DatabaseEntry entry)
static boolean getRenumbering (DatabaseConfig dbConfig)
static OperationStatus getSearchRecordNumber (SecondaryCursor cursor, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
static OperationStatus getSearchRecordNumber (Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException
static boolean getSortedDuplicates (DatabaseConfig dbConfig)
static Transaction getThreadTransaction (Environment env) throws DatabaseException
static boolean getUnsortedDuplicates (DatabaseConfig dbConfig)
static boolean getWriteCursor (CursorConfig config)
static boolean isTypeBtree (DatabaseConfig dbConfig)
static boolean isTypeHash (DatabaseConfig dbConfig)
static boolean isTypeQueue (DatabaseConfig dbConfig)
static boolean isTypeRecno (DatabaseConfig dbConfig)
static Database openDatabase (Environment env, Transaction txn, String file, String name, DatabaseConfig config) throws DatabaseException, FileNotFoundException
static SecondaryDatabase openSecondaryDatabase (Environment env, Transaction txn, String file, String name, Database primary, SecondaryConfig config) throws DatabaseException, FileNotFoundException
static OperationStatus putAfter (Cursor cursor, DatabaseEntry key, DatabaseEntry data) throws DatabaseException
static OperationStatus putBefore (Cursor cursor, DatabaseEntry key, DatabaseEntry data) throws DatabaseException
static void setBtreeComparator (DatabaseConfig dbConfig, Comparator comparator)
static void setBtreeRecordNumbers (DatabaseConfig dbConfig, boolean val)
static void setInitializeCache (EnvironmentConfig config, boolean val)
static void setInitializeCDB (EnvironmentConfig config, boolean val)
static void setInitializeLocking (EnvironmentConfig config, boolean val)
static void setLockDetectModeOldest (EnvironmentConfig config)
static void setReadUncommitted (DatabaseConfig dbConfig, boolean val)
static void setRecordLength (DatabaseConfig dbConfig, int val)
static void setRecordNumber (DatabaseEntry entry, int recNum)
static void setRecordPad (DatabaseConfig dbConfig, int val)
static void setRenumbering (DatabaseConfig dbConfig, boolean val)
static void setSortedDuplicates (DatabaseConfig dbConfig, boolean val)
static void setTypeBtree (DatabaseConfig dbConfig)
static void setTypeHash (DatabaseConfig dbConfig)
static void setTypeQueue (DatabaseConfig dbConfig)
static void setTypeRecno (DatabaseConfig dbConfig)
static void setUnsortedDuplicates (DatabaseConfig dbConfig, boolean val)
static void setWriteCursor (CursorConfig config, boolean val)

Static Public Attributes

static final boolean BTREE_RECNUM_METHOD = true
static final boolean CDB = true
static final boolean DATABASE_COUNT = false
static final boolean HASH_METHOD = true
static final boolean INSERTION_ORDERED_DUPLICATES = true
static final boolean JOIN = true
static final boolean LOCK_SUBSYSTEM = true
static final boolean MEMORY_SUBSYSTEM = true
static final boolean NESTED_TRANSACTIONS = true
static final boolean OPTIONAL_READ_UNCOMMITTED = true
static final boolean QUEUE_METHOD = true
static final boolean RECNO_METHOD = true
static final boolean SECONDARIES = true
static final boolean SEPARATE_DATABASE_FILES = true
static boolean TRANSACTION_RUNNER_PRINT_STACK_TRACES = true

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index