Package com.sleepycat.db
package com.sleepycat.db
Berkeley DB Java API
[reference guide] [Java programming notes].
[reference guide] [Java programming notes].
This package is a wrapper around the Berkeley DB library. It uses JNI to provide access to Berkeley DB, which is implemented in C. That means that a shared library or DLL must be available when applications use this package.
There are also several utilities provided with Berkeley DB that make administrative tasks possible from the command line. For more information, see the page Berkeley DB Supporting Utilities.
-
ClassDescriptionAn interface that can optionally be used to override the default behavior performed by the
Environment.backupandEnvironment.backupDatabasemethods.Options forEnvironment.backup(java.lang.String, com.sleepycat.db.BackupOptions)operations.An interface specifying how Btree compression works.An interface specifying how Btree prefixes should be calculated.The BtreeStats object is used to return Btree or Recno database statistics.This class allows applications to modify settings for aDatabaseusing theDatabase.getCacheFile.Priorities that can be assigned to files in the cache.Statistics for a file in the cache.Cache statistics for a database environment.Specifies the attributes of an application invoked checkpoint operation.A database cursor.Specify the attributes of database cursor.Creates a database handle for a single Berkeley DB database.Specify the attributes of a database.Encodes database key and data items as a byte array.The root of all database exceptions.Statistics for a single database.Database types.DeadlockException is thrown to a thread of control when multiple threads competing for a lock are deadlocked, when a lock request has timed out or when a lock request would need to block and the transaction has been configured to not wait for locks.A database environment.Specifies the attributes of an environment.An interface specifying a callback function to be called when an error occurs in the Berkeley DB library.An interface classs with prototype definitions of all event functions that can be called via the Berkeley DB event callback mechanism.An abstract class that implementsEventHandler, used to specify a callback function to be called when an event is sent from the Berkeley DB library.An interface specifying a function to be called to provide feedback.The action taken when a referenced record in the foreign key database is deleted.The interface implemented for setting single-valued foreign keys to null.The interface implemented for setting multi-valued foreign keys to null.An application-specified, database hash function.The HashStats object is used to return Hash database statistics.A HeapFullException is thrown when an attempt was made to add or update a record in a Heap database.Content used for the key in a Heap database record.The HeapStats object is used to return Heap database statistics.The configuration properties of aJoinCursor.A specialized join cursor for use in performing equality or natural joins on secondary indices.An object that returns status from theDatabase.getKeyRangemethod.The locking interfaces for the database environment are methods of theEnvironmenthandle.Deadlock detection modes.Locking modes for database operations.A LockNotGrantedException is thrown when a lock requested using theEnvironment.getLockorEnvironment.lockVectormethods, where the noWait flag or lock timers were configured, could not be granted before the wait-time expired.Operations that can be performed on locks.The LockRequest object is used to encapsulate a single lock request.When using the default lock conflict matrix, the LockRequestMode class defines the set of possible lock modes.Lock statistics for a database environment.The LogCursor object is the handle for a cursor into the log files, supporting sequential access to the records stored in log files.A function to process application-specific log records.The LogSequenceNumber object is a log sequence number which specifies a unique location in a log file.Log statistics for a database environment.Specify the attributes of a database.This exception is thrown when aDatabaseEntrypassed to aDatabaseorCursormethod is not large enough to hold a value being returned.An interface specifying a callback function to be called to display informational messages.An abstract class representing a DatabaseEntry that holds multiple results returned by a singleCursorget method.Statistics about mutexes in a Berkeley DB database environment, returned byEnvironment.getMutexStats(com.sleepycat.db.StatsConfig)Status values from database operations.An interface specifying a function to be called if the database environment panics.An interface specifying how Btree prefixes should be calculated.The PreparedTransaction object is used to encapsulate a single prepared, but not yet resolved, transaction.The QueueStats object is used to return Queue database statistics.An interface specifying a callback function that modifies stored data based on a generated key.The recovery operation being performed whenLogRecordHandler.handleLogRecordis called.Advanced configuration is possible for various systems that use shared memory (regions) for cross process sharing.A ReplicationChannel handle is used to manage a channel in a replication group.Settings that configure Berkeley DB replication.The replication group has more than one master.Thrown when a database handle has been invalidated because a replication election unrolled a committed transaction.An election is needed.A simple wrapper class to hold information needed to define a host in a replication group.Thrown if a new master has been chosen but the client is unable to synchronize with the new master, possibly because the client has turned off automatic internal initialization (theReplicationConfig.AUTOINITsetting).Thrown if a master lease has expired.Thrown when an operation was blocked by client/master synchronization.A class that provides definitions for the types of network ack policyto use when transmitting messages between replication sites using theReplication Manager.Describes the connection status of a replication site.A ReplicationManagerSite handle is used to manage a site in a replication group.Specifies the attributes of a site in the replication group.A simple wrapper class to hold information needed to define a replication site.This class provides definitions of the various start policies thatcan be specified when starting a replication client using theEnvironment.replicationManagerStartcall.Replication Manager statistics for a database environment.Thrown if replication group was unable to elect a master, or was unable to complete the election in the specified timeout period.Replication statistics for a database environment.The return status from processing a replication message.The ReplicationTimeoutType defines the types of timeouts that can beconfigured for the Berkeley Db replication functionality.An interface specifying a replication transmit function, which sends information to other members of the replication group.Thrown when the database environment needs to be recovered.The configuration properties of aSecondaryDatabaseextend those of a primaryDatabase.A database cursor for a secondary database.A secondary database handle.The interface implemented for extracting single-valued secondary keys from primary records.The interface implemented for extracting multi-valued secondary keys from primary records.A Sequence handle is used to manipulate a sequence record in a database.Specify the attributes of a sequence.A SequenceStats object is used to return sequence statistics.Specifies the attributes of a statistics retrieval operation.The Transaction object is the handle for a transaction.Specifies the attributes of a database environment transaction.Transaction statistics for a database environment.Status values from transaction application checking operations.Specifies the attributes of a verification operation.Specifies the attributes of a verification operation.Thrown if the version of the Berkeley DB library doesn't match the version that created the database environment.