# Java Interface by Class

Class | Method | Description
--- | --- | ---
DbEnv |  | Database Environment
| 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_data_dir | Set the environment data directory
| 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_flags | Environment configuration
| DbEnv.set_mutexlocks | Turn off mutual exclusion locking
| DbEnv.set_pageyield | Yield the processor on each page access
| DbEnv.set_panicstate | Reset panic state
| DbEnv.set_recovery_init | Set recovery initialization callback
| DbEnv.set_rpc_server | Establish an RPC server connection
| DbEnv.set_region_init | Fault in shared regions on initial access
| DbEnv.set_shm_key | Set system memory shared segment ID
| DbEnv.set_tas_spins | Set the number of test-and-set spins
| DbEnv.set_tmp_dir | Set the environment temporary file directory
| DbEnv.set_verbose | Set verbose messages
| DbEnv.strerror | Error strings
| DbEnv.version | Return version information
Db |  | Database Operations
| Db.associate | Associate a secondary index
| Db.close | Close a database
| Db.del | Delete items from a database
| Db.fd | Return a file descriptor from a database
| Db.get, Db.pget | 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.key_range | Return estimate of key location
| Db.open | Open a database
| Db.put | Store items into a database
| Db.remove | Remove a database
| Db.rename | Rename a database
| Db.set_append_recno | Set record append callback
| Db.set_bt_compare | Set a Btree comparison function
| Db.set_bt_minkey | Set the minimum number of keys per Btree page
| Db.set_bt_prefix | Set a Btree prefix comparison function
| Db.set_cachesize | Set the database cache size
| Db.set_dup_compare | Set a duplicate comparison function
| 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_hash | Set a hashing function
| 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_q_extentsize | Set Queue database extent 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.truncate | Empty a database
| Db.upgrade | Upgrade a database
| Db.verify | Verify/upgrade a database
Db |  | Database Cursor Operations
| Db.cursor | Open a cursor into a database
Dbc |  |
| Dbc.close | Close a cursor
| Dbc.count | Return count of duplicates
| Dbc.del | Delete by cursor
| Dbc.dup | Duplicate a cursor
| Dbc.get, Dbc.pget | Retrieve by cursor
| Dbc.put | Store by cursor
Dbt |  | Key/Data Pairs
DbMultipleDataIterator |  | Bulk Retrieval
DbMultipleKeyDataIterator |  |
DbMultipleRecnoDataIterator |  |
DbEnv |  | Locking Subsystem
| 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 (Deprecated)
| DbEnv.set_lk_max_lockers | Set maximum number of lockers
| DbEnv.set_lk_max_locks | Set maximum number of locks
| DbEnv.set_lk_max_objects | Set maximum number of lock objects
| 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
DbLock |  |
| DbLock.put | Release a lock
DbLsn |  | Log Sequence Numbers
DbEnv |  | Logging Subsystem
| DbEnv.set_lg_bsize | Set log buffer size
| DbEnv.set_lg_dir | Set the environment logging directory
| DbEnv.set_lg_max | Set log file size
| DbEnv.set_lg_regionmax | Set logging region size
| 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 filename with the log manager
| DbEnv.log_stat | Return log subsystem statistics
| DbEnv.log_unregister | Unregister a filename with the log manager
DbEnv |  | Memory Pool Subsystem
| DbEnv.set_mp_mmapsize | Set maximum mapped-in database file size
| 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 |  | Transaction Subsystem
| DbEnv.set_tx_max | Set maximum number of transactions
| DbEnv.set_tx_recover | Set transaction abort recover function
| DbEnv.set_tx_timestamp | Set recovery timestamp
| DbEnv.txn_begin | Begin a transaction
| DbEnv.txn_checkpoint | Checkpoint the transaction subsystem
| DbEnv.txn_recover | Distributed transaction recovery
| DbEnv.txn_stat | Return transaction subsystem statistics
DbTxn |  |
| DbTxn.abort | Abort a transaction
| DbTxn.commit | Commit a transaction
| DbTxn.discard | Discard a prepared but not resolved transaction handle
| 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
| DbMemoryException.get_dbt | Get the failing Dbt
DbRunRecoveryException |  | Exception Class for failures requiring recovery

Copyright Sleepycat Software