# Java Interface by Class

Class | Method | Description
--- | --- | ---
DbEnv |  | Berkeley DB Environment Class
| DbEnv.close | Close an environment
| DbEnv.open | Open an environment
| DbEnv.remove | Remove an environment
| DbEnv.set_cachesize | Set the environment cache size
| DbEnv.set_errcall | Set error message callback
| DbEnv.set_error_stream | Set error message output stream
| DbEnv.set_errpfx | Set error message prefix
| DbEnv.set_feedback | Set feedback callback
| DbEnv.set_lg_bsize | Set log buffer size
| DbEnv.set_lg_max | Set log file size
| DbEnv.set_lk_conflicts | Set lock conflicts matrix
| DbEnv.set_lk_detect | Set automatic deadlock detection
| DbEnv.set_lk_max | Set maximum number of locks
| DbEnv.set_mp_mmapsize | Set maximum mapped-in database file size
| DbEnv.set_recovery_init | Set recovery initialization callback
| DbEnv.set_region_init | Fault in shared regions on initial access
| DbEnv.set_tx_max | Set maximum number of transactions
| DbEnv.set_verbose | Set verbose messages
| DbEnv.lock_detect | Perform deadlock detection
| DbEnv.lock_get | Acquire a lock
| DbEnv.lock_id | Acquire a locker ID
| DbEnv.lock_stat | Return lock subsystem statistics
| DbEnv.log_archive | List log and database files
| DbEnv.log_compare | Compare two Log Sequence Numbers
| DbEnv.log_file | Map Log Sequence Numbers to log files
| DbEnv.log_flush | Flush log records
| DbEnv.log_get | Get a log record
| DbEnv.log_put | Write a log record
| DbEnv.log_register | Register a file name with the log manager
| DbEnv.log_stat | Return log subsystem statistics
| DbEnv.log_unregister | Unregister a file name with the log manager
| DbEnv.memp_fstat | Return buffer pool statistics.
| DbEnv.memp_stat | Return buffer pool statistics
| DbEnv.memp_trickle | Trickle flush pages from a buffer pool
| DbEnv.txn_begin | Begin a transaction
| DbEnv.txn_checkpoint | Checkpoint the transaction subsystem
| DbEnv.txn_stat | Return transaction subsystem statistics
Db |  | Berkeley DB Access Method Class
| Db.close | Close a database
| Db.cursor | Open a cursor into a database
| Db.del | Delete items from a database
| Db.fd | Return a file descriptor from a database
| Db.get | Get items from a database
| Db.get_byteswapped | Return if the underlying database is in host order
| Db.get_type | Return the database type
| Db.join | Perform a database join on cursors
| Db.open | Open a database
| Db.put | Store items into a database
| Db.remove | Remove a database
| Db.set_bt_minkey | Set the minimum number of keys per Btree page
| Db.set_cachesize | Set the database cache size
| Db.set_errcall | Set error message callback
| Db.set_errpfx | Set error message prefix
| Db.set_feedback | Set feedback callback
| Db.set_flags | General database configuration
| Db.set_h_ffactor | Set the Hash table density
| Db.set_h_nelem | Set the Hash table size
| Db.set_lorder | Set the database byte order
| Db.set_pagesize | Set the underlying database page size
| Db.set_re_delim | Set the variable-length record delimiter
| Db.set_re_len | Set the fixed-length record length
| Db.set_re_pad | Set the fixed-length record pad byte
| Db.set_re_source | Set the backing Recno text file
| Db.stat | Return database statistics
| Db.sync | Flush a database to stable storage
| Db.upgrade | Upgrade a database
Dbc |  | Berkeley DB Cursor Class
| Dbc.close | Close a cursor
| Dbc.del | Delete by cursor
| Dbc.dup | Duplicate a cursor
| Dbc.get | Retrieve by cursor
| Dbc.put | Store by cursor
Dbt |  | Key/Data Encoding Class
DbLock |  | Lock Class
| DbLock.put | Release a lock
DbLsn |  | Log Sequence Number Class
DbTxn |  | Transaction Class
| DbTxn.abort | Abort a transaction
| DbTxn.commit | Commit a transaction
| DbTxn.id | Return a transaction ID
| DbTxn.prepare | Prepare a transaction for commit
DbException |  | Exception Class for Berkeley DB Activity
| DbException.get_errno | Get the error value
DbDeadlockException |  | Exception Class for deadlocks
DbMemoryException |  | Exception Class for insufficient memory
DbRunRecoveryException |  | Exception Class for failures requiring recovery

Copyright Sleepycat Software