Berkeley DB Java Edition version 3.2.76

## Uses of Class
com.sleepycat.je.DatabaseException

Packages that use DatabaseException
com.sleepycat.bind.serial: Bindings that use Java serialization.
com.sleepycat.bind.tuple: Bindings that use sequences of primitive fields, or tuples.
com.sleepycat.collections: Data access based on the standard Java collections API.
com.sleepycat.je: Foundation for creating environments, databases and transactions; provides cursor based data access.
com.sleepycat.je.jca.ra: Support for the Java Connector Architecture, which provides a standard for connecting the J2EE platform to legacy enterprise information systems (EIS), such as ERP systems, database systems, and legacy applications not written in Java.
com.sleepycat.je.util: Supporting utilities.
com.sleepycat.persist: The Direct Persistence Layer (DPL) adds a persistent object model to the Berkeley DB transactional engine.
com.sleepycat.persist.raw: Raw data access for general purpose tools and manual conversions.

Uses of DatabaseException in com.sleepycat.bind.serial

Methods in com.sleepycat.bind.serial that throw DatabaseException
`void` `StoredClassCatalog.close()`
`void` `ClassCatalog.close()` Close a catalog database and release any cached resources.
`boolean` `TupleSerialKeyCreator.createSecondaryKey(SecondaryDatabase db, DatabaseEntry primaryKeyEntry, DatabaseEntry dataEntry, DatabaseEntry indexKeyEntry)`
`boolean` `SerialSerialKeyCreator.createSecondaryKey(SecondaryDatabase db, DatabaseEntry primaryKeyEntry, DatabaseEntry dataEntry, DatabaseEntry indexKeyEntry)`
`ObjectStreamClass` `StoredClassCatalog.getClassFormat(byte[] classID)`
`ObjectStreamClass` `ClassCatalog.getClassFormat(byte[] classID)` Return the ObjectStreamClass for the given class ID.
`byte[]` `StoredClassCatalog.getClassID(ObjectStreamClass classFormat)`
`byte[]` `ClassCatalog.getClassID(ObjectStreamClass classDesc)` Return the class ID for the current version of the given class description.
`boolean` `TupleSerialKeyCreator.nullifyForeignKey(SecondaryDatabase db, DatabaseEntry dataEntry)`
`boolean` `SerialSerialKeyCreator.nullifyForeignKey(SecondaryDatabase db, DatabaseEntry dataEntry)`

Constructors in com.sleepycat.bind.serial that throw DatabaseException
`StoredClassCatalog(Database database)` Creates a catalog based on a given database.

Uses of DatabaseException in com.sleepycat.bind.tuple

Methods in com.sleepycat.bind.tuple that throw DatabaseException
`boolean` `TupleTupleKeyCreator.createSecondaryKey(SecondaryDatabase db, DatabaseEntry primaryKeyEntry, DatabaseEntry dataEntry, DatabaseEntry indexKeyEntry)`
`boolean` `TupleTupleKeyCreator.nullifyForeignKey(SecondaryDatabase db, DatabaseEntry dataEntry)`

Uses of DatabaseException in com.sleepycat.collections

Methods in com.sleepycat.collections that throw DatabaseException
`Transaction` `CurrentTransaction.abortTransaction()` Aborts the transaction that is active for the current thread for this environment and makes the parent transaction (if any) the current transaction.
`void` `PrimaryKeyAssigner.assignKey(DatabaseEntry keyData)` Assigns a new primary key value into the given data buffer.
`Transaction` `CurrentTransaction.beginTransaction(TransactionConfig config)` Begins a new transaction for this environment and associates it with the current thread.
`Transaction` `CurrentTransaction.commitTransaction()` Commits the transaction that is active for the current thread for this environment and makes the parent transaction (if any) the current transaction.
`void` `TransactionRunner.run(TransactionWorker worker)` Calls the `TransactionWorker.doWork()` method and, for transactional environments, may begin and end a transaction.

Uses of DatabaseException in com.sleepycat.je

Subclasses of DatabaseException in com.sleepycat.je
`class` `DatabaseNotFoundException` Thrown when an operation requires a database and that database does not exist.
`class` `DeadlockException` DeadlockException is thrown to a thread of control when multiple threads competing for a lock are deadlocked or when a lock request would need to block and the transaction has been configured to not wait for locks.
`class` `LockNotGrantedException` A LockNotGrantedException is thrown when a non-blocking operation fails to get a lock.
`class` `RunRecoveryException` Thrown when the database environment needs to be recovered.

Methods in com.sleepycat.je that throw DatabaseException
`void` `Transaction.abort()` Cause an abnormal termination of the transaction.
`Transaction` `Environment.beginTransaction(Transaction parent, TransactionConfig txnConfig)` Create a new transaction in the database environment.
`void` `Environment.checkpoint(CheckpointConfig checkpointConfig)` Synchronously checkpoint the database environment.
`int` `Environment.cleanLog()` Synchronously invoke database environment log cleaning.
`void` `Sequence.close()` Close a sequence.
`void` `SecondaryDatabase.close()` Closes a secondary database and dis-associates it from its primary database.
`void` `JoinCursor.close()` Closes the cursors that have been opened by this join cursor.
`void` `Environment.close()` The Environment.close method closes the Berkeley DB environment.
`void` `Database.close()` Flush any cached database information to disk and discard the database handle.
`void` `Cursor.close()` Discard the cursor.
`void` `Transaction.commit()` End the transaction.
`void` `Transaction.commitNoSync()` End the transaction, not committing synchronously.
`void` `Transaction.commitSync()` End the transaction, committing synchronously.
`void` `Transaction.commitWriteNoSync()` End the transaction, writing but not flushing the log.
`void` `Environment.compress()` Synchronously invoke the compressor mechanism which compacts in memory data structures after delete operations.
`long` `Database.count()` Count the key/data pairs in the database.
`int` `Cursor.count()` Return a count of the number of data items for the key to which the cursor refers.
`boolean` `SecondaryKeyCreator.createSecondaryKey(SecondaryDatabase secondary, DatabaseEntry key, DatabaseEntry data, DatabaseEntry result)` Creates a secondary key entry, given a primary key and data entry.
`void` `SecondaryMultiKeyCreator.createSecondaryKeys(SecondaryDatabase secondary, DatabaseEntry key, DatabaseEntry data, Set results)` Creates a secondary key entry, given a primary key and data entry.
`OperationStatus` `SecondaryCursor.delete()` Delete the key/data pair to which the cursor refers from the primary database and all secondary indices.
`OperationStatus` `Cursor.delete()` Delete the key/data pair to which the cursor refers.
`OperationStatus` `SecondaryDatabase.delete(Transaction txn, DatabaseEntry key)` Deletes the primary key/data pair associated with the specified secondary key.
`OperationStatus` `Database.delete(Transaction txn, DatabaseEntry key)` Remove key/data pairs from the database.
`Cursor` `SecondaryCursor.dup(boolean samePosition)` Returns a new `SecondaryCursor` for the same transaction as the original cursor.
`Cursor` `Cursor.dup(boolean samePosition)` Return a new cursor with the same transaction and locker ID as the original cursor.
`SecondaryCursor` `SecondaryCursor.dupSecondary(boolean samePosition)` Returns a new copy of the cursor as a `SecondaryCursor`.
`void` `Environment.evictMemory()` Synchronously invoke the mechanism for keeping memory usage within the cache size boundaries.
`OperationStatus` `SecondaryDatabase.get(Transaction txn, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key.
`OperationStatus` `SecondaryDatabase.get(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key.
`OperationStatus` `Database.get(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key.
`long` `Sequence.get(Transaction txn, int delta)` Return the next available element in the sequence and changes the sequence value by `delta`.
`EnvironmentConfig` `Environment.getConfig()` Return this object's configuration.
`DatabaseConfig` `Database.getConfig()` Return this Database object's configuration.
`OperationStatus` `SecondaryCursor.getCurrent(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Returns the key/data pair to which the cursor refers.
`OperationStatus` `SecondaryCursor.getCurrent(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Returns the key/data pair to which the cursor refers.
`OperationStatus` `Cursor.getCurrent(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Returns the key/data pair to which the cursor refers.
`Database` `Sequence.getDatabase()` Return the Database handle associated with this sequence.
`String` `Database.getDatabaseName()` Return the database name.
`List` `Environment.getDatabaseNames()` Return a List of database names for the database environment.
`Environment` `Database.getEnvironment()` Return the `Environment` handle for the database environment underlying the `Database`.
`OperationStatus` `SecondaryCursor.getFirst(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the first key/data pair of the database, and return that pair.
`OperationStatus` `SecondaryCursor.getFirst(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the first key/data pair of the database, and return that pair.
`OperationStatus` `Cursor.getFirst(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the first key/data pair of the database, and return that pair.
`File` `Environment.getHome()` Return the database environment's home directory.
`long` `Transaction.getId()` Return the transaction's unique ID.
`DatabaseEntry` `Sequence.getKey()` Return the DatabaseEntry used to open this sequence.
`OperationStatus` `SecondaryCursor.getLast(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the last key/data pair of the database, and return that pair.
`OperationStatus` `SecondaryCursor.getLast(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the last key/data pair of the database, and return that pair.
`OperationStatus` `Cursor.getLast(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the last key/data pair of the database, and return that pair.
`LockStats` `Environment.getLockStats(StatsConfig config)` Return the database environment's locking statistics.
`EnvironmentMutableConfig` `Environment.getMutableConfig()` Return database environment attributes.
`OperationStatus` `SecondaryCursor.getNext(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the next key/data pair and return that pair.
`OperationStatus` `SecondaryCursor.getNext(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the next key/data pair and return that pair.
`OperationStatus` `JoinCursor.getNext(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Returns the next primary key and data resulting from the join operation.
`OperationStatus` `Cursor.getNext(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the next key/data pair and return that pair.
`OperationStatus` `JoinCursor.getNext(DatabaseEntry key, LockMode lockMode)` Returns the next primary key resulting from the join operation.
`OperationStatus` `SecondaryCursor.getNextDup(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` If the next key/data pair of the database is a duplicate data record for the current key/data pair, move the cursor to the next key/data pair of the database and return that pair.
`OperationStatus` `SecondaryCursor.getNextDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` If the next key/data pair of the database is a duplicate data record for the current key/data pair, move the cursor to the next key/data pair of the database and return that pair.
`OperationStatus` `Cursor.getNextDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` If the next key/data pair of the database is a duplicate data record for the current key/data pair, move the cursor to the next key/data pair of the database and return that pair.
`OperationStatus` `SecondaryCursor.getNextNoDup(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the next non-duplicate key/data pair and return that pair.
`OperationStatus` `SecondaryCursor.getNextNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the next non-duplicate key/data pair and return that pair.
`OperationStatus` `Cursor.getNextNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the next non-duplicate key/data pair and return that pair.
`OperationStatus` `SecondaryCursor.getPrev(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the previous key/data pair and return that pair.
`OperationStatus` `SecondaryCursor.getPrev(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the previous key/data pair and return that pair.
`OperationStatus` `Cursor.getPrev(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the previous key/data pair and return that pair.
`OperationStatus` `SecondaryCursor.getPrevDup(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` If the previous key/data pair of the database is a duplicate data record for the current key/data pair, move the cursor to the previous key/data pair of the database and return that pair.
`OperationStatus` `SecondaryCursor.getPrevDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` If the previous key/data pair of the database is a duplicate data record for the current key/data pair, move the cursor to the previous key/data pair of the database and return that pair.
`OperationStatus` `Cursor.getPrevDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` If the previous key/data pair of the database is a duplicate data record for the current key/data pair, move the cursor to the previous key/data pair of the database and return that pair.
`OperationStatus` `SecondaryCursor.getPrevNoDup(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the previous non-duplicate key/data pair and return that pair.
`OperationStatus` `SecondaryCursor.getPrevNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the previous non-duplicate key/data pair and return that pair.
`OperationStatus` `Cursor.getPrevNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the previous non-duplicate key/data pair and return that pair.
`Database` `SecondaryDatabase.getPrimaryDatabase()` Returns the primary database associated with this secondary database.
`OperationStatus` `SecondaryCursor.getSearchBoth(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the specified secondary and primary key, where both the primary and secondary key items must match.
`OperationStatus` `SecondaryCursor.getSearchBoth(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` This operation is not allowed with this method signature.
`OperationStatus` `Cursor.getSearchBoth(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the specified key/data pair, where both the key and data items must match.
`OperationStatus` `SecondaryDatabase.getSearchBoth(Transaction txn, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the specified secondary and primary key, that is, both the primary and secondary key items must match.
`OperationStatus` `SecondaryDatabase.getSearchBoth(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` This operation is not allowed with this method signature.
`OperationStatus` `Database.getSearchBoth(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key and data value, that is, both the key and data items must match.
`OperationStatus` `SecondaryCursor.getSearchBothRange(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the specified secondary key and closest matching primary key of the database.
`OperationStatus` `SecondaryCursor.getSearchBothRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` This operation is not allowed with this method signature.
`OperationStatus` `Cursor.getSearchBothRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the specified key and closest matching data item of the database.
`OperationStatus` `SecondaryCursor.getSearchKey(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the given key of the database, and return the datum associated with the given key.
`OperationStatus` `SecondaryCursor.getSearchKey(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the given key of the database, and return the datum associated with the given key.
`OperationStatus` `Cursor.getSearchKey(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the given key of the database, and return the datum associated with the given key.
`OperationStatus` `SecondaryCursor.getSearchKeyRange(DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Move the cursor to the closest matching key of the database, and return the data item associated with the matching key.
`OperationStatus` `SecondaryCursor.getSearchKeyRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the closest matching key of the database, and return the data item associated with the matching key.
`OperationStatus` `Cursor.getSearchKeyRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Move the cursor to the closest matching key of the database, and return the data item associated with the matching key.
`SecondaryConfig` `SecondaryDatabase.getSecondaryConfig()` Returns a copy of the secondary configuration of this database.
`List` `Database.getSecondaryDatabases()` Return a list of all `SecondaryDatabase` objects associated with a primary database.
`SequenceStats` `Sequence.getStats(StatsConfig config)` Return statistical information about the sequence.
`EnvironmentStats` `Environment.getStats(StatsConfig config)` Return the general database environment statistics.
`DatabaseStats` `Database.getStats(StatsConfig statsConfig)` Return database statistics.
`Transaction` `Environment.getThreadTransaction()` Returns the transaction associated with this thread if implied transactions are being used.
`TransactionStats` `Environment.getTransactionStats(StatsConfig config)` Return the database environment's transactional statistics.
`Transaction` `XAEnvironment.getXATransaction(Xid xid)` This method can be used by the application to get the Transaction object given an XA Xid.
`JoinCursor` `SecondaryDatabase.join(Cursor[] cursors, JoinConfig config)` This operation is not allowed on a secondary database.
`JoinCursor` `Database.join(Cursor[] cursors, JoinConfig config)` Creates a specialized join cursor for use in performing equality or natural joins on secondary indices.
`boolean` `ForeignKeyNullifier.nullifyForeignKey(SecondaryDatabase secondary, DatabaseEntry data)` Sets the foreign key reference to null in the datum of the primary database.
`boolean` `ForeignMultiKeyNullifier.nullifyForeignKey(SecondaryDatabase secondary, DatabaseEntry key, DatabaseEntry data, DatabaseEntry secKey)` Sets the foreign key reference to null in the datum of the primary database.
`Cursor` `Database.openCursor(Transaction txn, CursorConfig cursorConfig)` Return a cursor into the database.
`Database` `Environment.openDatabase(Transaction txn, String databaseName, DatabaseConfig dbConfig)` Open, and optionally create, a `Database`.
`SecondaryCursor` `SecondaryDatabase.openSecondaryCursor(Transaction txn, CursorConfig cursorConfig)` Obtain a cursor on a database, returning a `SecondaryCursor`.
`SecondaryDatabase` `Environment.openSecondaryDatabase(Transaction txn, String databaseName, Database primaryDatabase, SecondaryConfig secConfig)` Open and optionally create a `SecondaryDatabase`.
`Sequence` `Database.openSequence(Transaction txn, DatabaseEntry key, SequenceConfig sequenceConfig)` Open a sequence in the database.
`void` `Database.preload(long maxBytes)` Deprecated. As of JE 2.0.83, replaced by `Database.preload(PreloadConfig)`.
`void` `Database.preload(long maxBytes, long maxMillisecs)` Deprecated. As of JE 2.0.101, replaced by `Database.preload(PreloadConfig)`.
`PreloadStats` `Database.preload(PreloadConfig config)` Preload the cache.
`OperationStatus` `SecondaryCursor.put(DatabaseEntry key, DatabaseEntry data)` This operation is not allowed on a secondary database.
`OperationStatus` `Cursor.put(DatabaseEntry key, DatabaseEntry data)` Store a key/data pair into the database.
`OperationStatus` `SecondaryDatabase.put(Transaction txn, DatabaseEntry key, DatabaseEntry data)` This operation is not allowed on a secondary database.
`OperationStatus` `Database.put(Transaction txn, DatabaseEntry key, DatabaseEntry data)` Store the key/data pair into the database.
`OperationStatus` `SecondaryCursor.putCurrent(DatabaseEntry data)` This operation is not allowed on a secondary database.
`OperationStatus` `Cursor.putCurrent(DatabaseEntry data)` Replaces the data in the key/data pair at the current cursor position.
`OperationStatus` `SecondaryCursor.putNoDupData(DatabaseEntry key, DatabaseEntry data)` This operation is not allowed on a secondary database.
`OperationStatus` `Cursor.putNoDupData(DatabaseEntry key, DatabaseEntry data)` Store a key/data pair into the database.
`OperationStatus` `SecondaryDatabase.putNoDupData(Transaction txn, DatabaseEntry key, DatabaseEntry data)` This operation is not allowed on a secondary database.
`OperationStatus` `Database.putNoDupData(Transaction txn, DatabaseEntry key, DatabaseEntry data)` Store the key/data pair into the database if it does not already appear in the database.
`OperationStatus` `SecondaryCursor.putNoOverwrite(DatabaseEntry key, DatabaseEntry data)` This operation is not allowed on a secondary database.
`OperationStatus` `Cursor.putNoOverwrite(DatabaseEntry key, DatabaseEntry data)` Store a key/data pair into the database.
`OperationStatus` `SecondaryDatabase.putNoOverwrite(Transaction txn, DatabaseEntry key, DatabaseEntry data)` This operation is not allowed on a secondary database.
`OperationStatus` `Database.putNoOverwrite(Transaction txn, DatabaseEntry key, DatabaseEntry data)` Store the key/data pair into the database if the key does not already appear in the database.
`void` `Environment.removeDatabase(Transaction txn, String databaseName)` Remove a database.
`void` `Database.removeSequence(Transaction txn, DatabaseEntry key)` Remove the sequence from the database.
`void` `Environment.renameDatabase(Transaction txn, String databaseName, String newName)` Rename a database.
`boolean` `Environment.scanLog(long startPosition, long endPosition, LogScanConfig config, LogScanner scanner)` Scans raw log entries in the JE log between two given points, passing all records for a given set of databases to the scanRecord method of the given LogScanner object.
`void` `Transaction.setLockTimeout(long timeout)` Configure the lock request timeout value for the transaction.
`void` `Environment.setMutableConfig(EnvironmentMutableConfig envMutableConfig)` Set database environment attributes.
`void` `Transaction.setTxnTimeout(long timeout)` Configure the timeout value for the transaction lifetime.
`void` `XAEnvironment.setXATransaction(Xid xid, Transaction txn)` This method can be used by the application to set the Transaction object for an XA Xid.
`void` `Environment.sync()` Synchronously flush database environment databases to stable storage.
`void` `Database.sync()` Flush the given database to disk; only applicable for database opened with the DeferredWrite configuration option.
`int` `SecondaryDatabase.truncate(Transaction txn, boolean countRecords)` This operation is not allowed on a secondary database.

`int`

`Database.truncate(Transaction txn, boolean returnCount)`
Deprecated. As of JE 1.7, replaced by `Environment.truncateDatabase(Transaction, String, boolean)`.

The Database class is thread safe and may be used concurrently by multiple threads, using multiple transactions. It was not possible to supply correct transactional semantics for this method in all cases without imposing a performance penalty on all operations. Specifically, a truncate operation executed within one transaction can be incorrectly seen before commit by other transactions if those later transactions use the same Database handle.

The replacement method, Environment.truncateDatabase(), avoids these issues because all Database handles must be closed before the truncateDatabase() method is called.

`long` `Environment.truncateDatabase(Transaction txn, String databaseName, boolean returnCount)` Empty the database, discarding all records it contains.
`DatabaseStats` `Database.verify(VerifyConfig config)` Verify the integrity of the database.
`boolean` `Environment.verify(VerifyConfig verifyConfig, PrintStream out)` Return if the database environment is consistent and correct.

Constructors in com.sleepycat.je that throw DatabaseException
`Environment(File envHome, EnvironmentConfig envConfig)` Create a database environment handle.
`XAEnvironment(File envHome, EnvironmentConfig configuration)` Create a database environment handle.

Uses of DatabaseException in com.sleepycat.je.jca.ra

Methods in com.sleepycat.je.jca.ra that throw DatabaseException
`Database` `JEConnection.openDatabase(String name, DatabaseConfig config)`
`SecondaryDatabase` `JEConnection.openSecondaryDatabase(String name, Database primaryDatabase, SecondaryConfig config)`
`void` `JEConnection.removeDatabase(String databaseName)`
`long` `JEConnection.truncateDatabase(String databaseName, boolean returnCount)`

Uses of DatabaseException in com.sleepycat.je.util

Methods in com.sleepycat.je.util that throw DatabaseException
`void` `DbDump.dump()` Perform the dump.
`void` `DbBackup.endBackup()` End backup mode, thereby re-enabling normal JE log cleaning.
`long` `DbBackup.getLastFileInBackupSet()` Can only be called in backup mode, after startBackup() has been called.
`String[]` `DbBackup.getLogFilesInBackupSet()` Get the list of all files that are needed for the environment at the point of time when backup mode started.
`String[]` `DbBackup.getLogFilesInBackupSet(long lastFileCopiedInPrevBackup)` Get the minimum list of files that must be copied for this backup.
`boolean` `DbLoad.load()`
`static void` `DbVerify.main(String[] argv)` The main used by the DbVerify utility.
`static void` `DbLoad.main(String[] argv)` The main used by the DbLoad utility.
`static void` `DbDump.main(String[] argv)` The main used by the DbDump utility.
`void` `DbBackup.startBackup()` Start backup mode in order to determine the definitive backup set needed for this point in time.
`boolean` `DbVerify.verify(PrintStream out)` Verify a database and write errors found to a stream.

Constructors in com.sleepycat.je.util that throw DatabaseException
`DbBackup(Environment env)` DbBackup must be created with an open, valid environment handle.

Uses of DatabaseException in com.sleepycat.persist

Methods in com.sleepycat.persist that throw DatabaseException
`void` `ForwardCursor.close()` Closes the cursor.
`void` `EntityStore.close()` Closes all databases and sequences that were opened via this store.
`void` `EntityCursor.close()` Closes the cursor.
`void` `EntityStore.closeClass(Class entityClass)` Closes the primary and secondary databases for the given entity class that were opened via this store.
`boolean` `EntityIndex.contains(K key)` Checks for existence of a key in this index.
`boolean` `EntityIndex.contains(Transaction txn, K key, LockMode lockMode)` Checks for existence of a key in this index.
`long` `EntityIndex.count()` Returns a non-transactional count of the entities in this index.
`int` `EntityCursor.count()` Returns the number of values (duplicates) for the key at the cursor position, or returns zero if all values for the key have been deleted, Returns one or zero if the underlying index has unique keys.
`V` `EntityCursor.current()` Returns the value at the cursor position, or null if the value at the cursor position has been deleted.
`V` `EntityCursor.current(LockMode lockMode)` Returns the value at the cursor position, or null if the value at the cursor position has been deleted.
`boolean` `EntityCursor.delete()` Deletes the entity at the cursor position.
`boolean` `EntityIndex.delete(K key)` Deletes all entities with a given index key.
`boolean` `EntityIndex.delete(Transaction txn, K key)` Deletes all entities with a given index key.
`EntityCursor<V>` `EntityCursor.dup()` Duplicates the cursor at the cursor position.
`ForwardCursor<E>` `EntityJoin.entities()` Opens a cursor that returns the entities qualifying for the join.
`EntityCursor<V>` `EntityIndex.entities()` Opens a cursor for traversing all entities in this index.
`EntityCursor<V>` `EntityIndex.entities(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)` Opens a cursor for traversing entities in a key range.
`ForwardCursor<E>` `EntityJoin.entities(Transaction txn, CursorConfig config)` Opens a cursor that returns the entities qualifying for the join.
`EntityCursor<V>` `EntityIndex.entities(Transaction txn, CursorConfig config)` Opens a cursor for traversing all entities in this index.
`EntityCursor<V>` `EntityIndex.entities(Transaction txn, K fromKey, boolean fromInclusive, K toKey, boolean toInclusive, CursorConfig config)` Opens a cursor for traversing entities in a key range.
`EvolveStats` `EntityStore.evolve(EvolveConfig config)` Performs conversion of unevolved objects in order to reduce lazy conversion overhead.
`V` `EntityCursor.first()` Moves the cursor to the first value and returns it, or returns null if the cursor range is empty.
`V` `EntityCursor.first(LockMode lockMode)` Moves the cursor to the first value and returns it, or returns null if the cursor range is empty.
`V` `EntityIndex.get(K key)` Gets an entity via a key of this index.
`E` `PrimaryIndex.get(PK key)`
`E` `SecondaryIndex.get(SK key)`
`V` `EntityIndex.get(Transaction txn, K key, LockMode lockMode)` Gets an entity via a key of this index.
`E` `PrimaryIndex.get(Transaction txn, PK key, LockMode lockMode)`
`E` `SecondaryIndex.get(Transaction txn, SK key, LockMode lockMode)`

`

`<PK,E> PrimaryIndex<PK,E>`

`

`EntityStore.getPrimaryIndex(Class<PK> primaryKeyClass, Class<E> entityClass)`
Returns the primary index for a given entity class, opening it if necessary.

`

`<SK,PK,E> SecondaryIndex<SK,PK,E>`

`

`EntityStore.getSecondaryIndex(PrimaryIndex<PK,E> primaryIndex, Class<SK> keyClass, String keyName)`
Returns a secondary index for a given primary index and secondary key, opening it if necessary.

`Sequence` `EntityStore.getSequence(String name)` Returns a named sequence for using Berkeley DB engine API directly, opening it if necessary.
`static Set<String>` `EntityStore.getStoreNames(Environment env)` Returns the names of all entity stores in the given environment.

`

`<SK,PK,E1,E2 extends E1> SecondaryIndex<SK,PK,E2>`

`

`EntityStore.getSubclassIndex(PrimaryIndex<PK,E1> primaryIndex, Class<E2> entitySubclass, Class<SK> keyClass, String keyName)`
Returns a secondary index for a secondary key in an entity subclass, opening it if necessary.

`ForwardCursor<PK>` `EntityJoin.keys()` Opens a cursor that returns the primary keys of entities qualifying for the join.
`EntityCursor<K>` `EntityIndex.keys()` Opens a cursor for traversing all keys in this index.
`EntityCursor<K>` `EntityIndex.keys(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)` Opens a cursor for traversing keys in a key range.
`ForwardCursor<PK>` `EntityJoin.keys(Transaction txn, CursorConfig config)` Opens a cursor that returns the primary keys of entities qualifying for the join.
`EntityCursor<K>` `EntityIndex.keys(Transaction txn, CursorConfig config)` Opens a cursor for traversing all keys in this index.
`EntityCursor<K>` `EntityIndex.keys(Transaction txn, K fromKey, boolean fromInclusive, K toKey, boolean toInclusive, CursorConfig config)` Opens a cursor for traversing keys in a key range.
`EntityIndex<SK,PK>` `SecondaryIndex.keysIndex()` Returns a read-only keys index that maps secondary key to primary key.
`V` `EntityCursor.last()` Moves the cursor to the last value and returns it, or returns null if the cursor range is empty.
`V` `EntityCursor.last(LockMode lockMode)` Moves the cursor to the last value and returns it, or returns null if the cursor range is empty.
`V` `ForwardCursor.next()` Moves the cursor to the next value and returns it, or returns null if there are no more values in the cursor range.
`V` `EntityCursor.next()` Moves the cursor to the next value and returns it, or returns null if there are no more values in the cursor range.
`V` `ForwardCursor.next(LockMode lockMode)` Moves the cursor to the next value and returns it, or returns null if there are no more values in the cursor range.
`V` `EntityCursor.next(LockMode lockMode)` Moves the cursor to the next value and returns it, or returns null if there are no more values in the cursor range.
`V` `EntityCursor.nextDup()` Moves the cursor to the next value with the same key (duplicate) and returns it, or returns null if no more values are present for the key at the current position.
`V` `EntityCursor.nextDup(LockMode lockMode)` Moves the cursor to the next value with the same key (duplicate) and returns it, or returns null if no more values are present for the key at the current position.
`V` `EntityCursor.nextNoDup()` Moves the cursor to the next value with a different key and returns it, or returns null if there are no more unique keys in the cursor range.
`V` `EntityCursor.nextNoDup(LockMode lockMode)` Moves the cursor to the next value with a different key and returns it, or returns null if there are no more unique keys in the cursor range.
`V` `EntityCursor.prev()` Moves the cursor to the previous value and returns it, or returns null if there are no preceding values in the cursor range.
`V` `EntityCursor.prev(LockMode lockMode)` Moves the cursor to the previous value and returns it, or returns null if there are no preceding values in the cursor range.
`V` `EntityCursor.prevDup()` Moves the cursor to the previous value with the same key (duplicate) and returns it, or returns null if no preceding values are present for the key at the current position.
`V` `EntityCursor.prevDup(LockMode lockMode)` Moves the cursor to the previous value with the same key (duplicate) and returns it, or returns null if no preceding values are present for the key at the current position.
`V` `EntityCursor.prevNoDup()` Moves the cursor to the preceding value with a different key and returns it, or returns null if there are no preceding unique keys in the cursor range.
`V` `EntityCursor.prevNoDup(LockMode lockMode)` Moves the cursor to the preceding value with a different key and returns it, or returns null if there are no preceding unique keys in the cursor range.
`E` `PrimaryIndex.put(E entity)` Inserts an entity and returns null, or updates it if the primary key already exists and returns the existing entity.
`E` `PrimaryIndex.put(Transaction txn, E entity)` Inserts an entity and returns null, or updates it if the primary key already exists and returns the existing entity.
`boolean` `PrimaryIndex.putNoOverwrite(E entity)` Inserts an entity and returns true, or returns false if the primary key already exists.
`boolean` `PrimaryIndex.putNoOverwrite(Transaction txn, E entity)` Inserts an entity and returns true, or returns false if the primary key already exists.
`void` `PrimaryIndex.putNoReturn(E entity)` Inserts an entity, or updates it if the primary key already exists (does not return the existing entity).
`void` `PrimaryIndex.putNoReturn(Transaction txn, E entity)` Inserts an entity, or updates it if the primary key already exists (does not return the existing entity).
`EntityIndex<PK,E>` `SecondaryIndex.subIndex(SK key)` Returns an index that maps primary key to entity for the subset of entities having a given secondary key (duplicates).
`void` `EntityStore.sync()` Flushes each modified index to disk that was opened in deferred-write mode.
`void` `EntityStore.truncateClass(Class entityClass)` Deletes all instances of this entity class and its (non-entity) subclasses.
`void` `EntityStore.truncateClass(Transaction txn, Class entityClass)` Deletes all instances of this entity class and its (non-entity) subclasses.
`boolean` `EntityCursor.update(V entity)` Replaces the entity at the cursor position with the given entity.

Constructors in com.sleepycat.persist that throw DatabaseException
`EntityStore(Environment env, String storeName, StoreConfig config)` Opens an entity store in a given environment.
`PrimaryIndex(Database database, Class<PK> keyClass, EntryBinding keyBinding, Class<E> entityClass, EntityBinding entityBinding)` Creates a primary index without using an `EntityStore`.
`SecondaryIndex(SecondaryDatabase database, Database keysDatabase, PrimaryIndex<PK,E> primaryIndex, Class<SK> secondaryKeyClass, EntryBinding secondaryKeyBinding)` Creates a secondary index without using an `EntityStore`.

Uses of DatabaseException in com.sleepycat.persist.raw

Methods in com.sleepycat.persist.raw that throw DatabaseException
`void` `RawStore.close()` Closes all databases and sequences that were opened by this model.
`PrimaryIndex<Object,RawObject>` `RawStore.getPrimaryIndex(String entityClass)` Opens the primary index for a given entity class.
`SecondaryIndex<Object,Object,RawObject>` `RawStore.getSecondaryIndex(String entityClass, String keyName)` Opens the secondary index for a given entity class and secondary key name.

Constructors in com.sleepycat.persist.raw that throw DatabaseException
`RawStore(Environment env, String storeName, StoreConfig config)` Opens an entity store for raw data access.

Berkeley DB Java Edition version 3.2.76

Copyright 1996,2008 Oracle. All rights reserved.