Logo Search packages:      
Sourcecode: db4.1 version File versions

com::sleepycat::db::Db Class Reference

List of all members.


Detailed Description

Author:
Donald D. Anderson

Definition at line 19 of file Db.java.


Public Member Functions

native void _associate (DbTxn txn, Db secondary, DbSecondaryKeyCreate key_creator, int flags) throws DbException
native int _close (int flags) throws DbException
native void _open (DbTxn txnid, String file, String database, int type, int flags, int mode) throws DbException, FileNotFoundException
native void _remove (String file, String database, int flags) throws DbException, FileNotFoundException
native void _rename (String file, String database, String newname, int flags) throws DbException, FileNotFoundException
synchronized void associate (DbTxn txn, Db secondary, DbSecondaryKeyCreate key_creator, int flags) throws DbException
synchronized int close (int flags) throws DbException
native Dbc cursor (DbTxn txnid, int flags) throws DbException
 Db (DbEnv env, int flags) throws DbException
native int del (DbTxn txnid, Dbt key, int flags) throws DbException
native void err (int errcode, String message)
native void errx (String message)
native int fd () throws DbException
native int get (DbTxn txnid, Dbt key, Dbt data, int flags) throws DbException
native boolean get_byteswapped ()
native int get_flags_raw () throws DbException
native int get_type ()
native Dbc join (Dbc curslist[], int flags) throws DbException
native void key_range (DbTxn txnid, Dbt key, DbKeyRange range, int flags) throws DbException
synchronized void open (DbTxn txnid, String file, String database, int type, int flags, int mode) throws DbException, FileNotFoundException
native int pget (DbTxn txnid, Dbt key, Dbt pkey, Dbt data, int flags) throws DbException
native int put (DbTxn txnid, Dbt key, Dbt data, int flags) throws DbException
synchronized void remove (String file, String database, int flags) throws DbException, FileNotFoundException
synchronized void rename (String file, String database, String newname, int flags) throws DbException, FileNotFoundException
void set_append_recno (DbAppendRecno append_recno) throws DbException
void set_bt_compare (DbBtreeCompare bt_compare) throws DbException
native void set_bt_maxkey (int maxkey) throws DbException
native void set_bt_minkey (int minkey) throws DbException
void set_bt_prefix (DbBtreePrefix bt_prefix) throws DbException
native void set_cache_priority (int priority) throws DbException
native void set_cachesize (int gbytes, int bytes, int ncaches) throws DbException
void set_dup_compare (DbDupCompare dup_compare) throws DbException
native void set_encrypt (String passwd, int flags) throws DbException
void set_errcall (DbErrcall errcall)
void set_error_stream (OutputStream s)
void set_errpfx (String errpfx)
void set_feedback (DbFeedback feedback) throws DbException
native void set_flags (int flags) throws DbException
native void set_h_ffactor (int h_ffactor) throws DbException
void set_h_hash (DbHash h_hash) throws DbException
native void set_h_nelem (int h_nelem) throws DbException
native void set_lorder (int lorder) throws DbException
native void set_pagesize (long pagesize) throws DbException
native void set_q_extentsize (int extent_size) throws DbException
native void set_re_delim (int re_delim) throws DbException
native void set_re_len (int re_len) throws DbException
native void set_re_pad (int re_pad) throws DbException
native void set_re_source (String re_source) throws DbException
native Object stat (int flags) throws DbException
native void sync (int flags) throws DbException
native int truncate (DbTxn txnid, int flags) throws DbException
native void upgrade (String name, int flags) throws DbException
native void verify (String name, String subdb, OutputStream outstr, int flags) throws DbException

Static Public Member Functions

static void load_db ()

Static Public Attributes

static final int DB_AFTER
static final int DB_AGGRESSIVE
static final int DB_APPEND
static final int DB_ARCH_ABS
static final int DB_ARCH_DATA
static final int DB_ARCH_LOG
static final int DB_AUTO_COMMIT
static final int DB_BEFORE
static final int DB_BTREE = 1
static final int DB_CACHED_COUNTS
static final int DB_CDB_ALLDB
static final int DB_CHKSUM_SHA1
static final int DB_CLIENT
static final int DB_CONSUME
static final int DB_CONSUME_WAIT
static final int DB_CREATE
static final int DB_CURRENT
static final int DB_CXX_NO_EXCEPTIONS
static final int DB_DBT_MALLOC
static final int DB_DBT_PARTIAL
static final int DB_DBT_REALLOC
static final int DB_DBT_USERMEM
static final int DB_DIRECT
static final int DB_DIRECT_DB
static final int DB_DIRECT_LOG
static final int DB_DIRTY_READ
static final int DB_DONOTINDEX = -30999
static final int DB_DUP
static final int DB_DUPSORT
static final int DB_EID_BROADCAST
static final int DB_EID_INVALID
static final int DB_ENCRYPT
static final int DB_ENCRYPT_AES
static final int DB_EXCL
static final int DB_FAST_STAT
static final int DB_FIRST
static final int DB_FLUSH
static final int DB_FORCE
static final int DB_GET_BOTH
static final int DB_GET_BOTH_RANGE
static final int DB_GET_RECNO
static final int DB_HASH = 2
static final int DB_INIT_CDB
static final int DB_INIT_LOCK
static final int DB_INIT_LOG
static final int DB_INIT_MPOOL
static final int DB_INIT_TXN
static final int DB_JOIN_ITEM
static final int DB_JOIN_NOSORT
static final int DB_JOINENV
static final int DB_KEYEMPTY = -30998
static final int DB_KEYEXIST = -30997
static final int DB_KEYFIRST
static final int DB_KEYLAST
static final int DB_LAST
static final int DB_LOCK_DEADLOCK = -30996
static final int DB_LOCK_DEFAULT
static final int DB_LOCK_EXPIRE
static final int DB_LOCK_GET
static final int DB_LOCK_GET_TIMEOUT
static final int DB_LOCK_IREAD
static final int DB_LOCK_IWR
static final int DB_LOCK_IWRITE
static final int DB_LOCK_MAXLOCKS
static final int DB_LOCK_MINLOCKS
static final int DB_LOCK_MINWRITE
static final int DB_LOCK_NOTGRANTED = -30995
static final int DB_LOCK_NOWAIT
static final int DB_LOCK_OLDEST
static final int DB_LOCK_PUT
static final int DB_LOCK_PUT_ALL
static final int DB_LOCK_PUT_OBJ
static final int DB_LOCK_RANDOM
static final int DB_LOCK_READ
static final int DB_LOCK_TIMEOUT
static final int DB_LOCK_WRITE
static final int DB_LOCK_YOUNGEST
static final int DB_LOCKDOWN
static final int DB_MULTIPLE
static final int DB_MULTIPLE_KEY
static final int DB_NEXT
static final int DB_NEXT_DUP
static final int DB_NEXT_NODUP
static final int DB_NODUPDATA
static final int DB_NOLOCKING
static final int DB_NOMMAP
static final int DB_NOORDERCHK
static final int DB_NOOVERWRITE
static final int DB_NOPANIC
static final int DB_NOSERVER = -30994
static final int DB_NOSERVER_HOME = -30993
static final int DB_NOSERVER_ID = -30992
static final int DB_NOSYNC
static final int DB_NOTFOUND = -30991
static final int DB_ODDFILESIZE
static final int DB_OLD_VERSION = -30990
static final int DB_ORDERCHKONLY
static final int DB_OVERWRITE
static final int DB_PAGE_NOTFOUND = -30989
static final int DB_PANIC_ENVIRONMENT
static final int DB_POSITION
static final int DB_PREV
static final int DB_PREV_NODUP
static final int DB_PRINTABLE
static final int DB_PRIORITY_DEFAULT
static final int DB_PRIORITY_HIGH
static final int DB_PRIORITY_LOW
static final int DB_PRIORITY_VERY_HIGH
static final int DB_PRIORITY_VERY_LOW
static final int DB_PRIVATE
static final int DB_QUEUE = 4
static final int DB_RDONLY
static final int DB_RECNO = 3
static final int DB_RECNUM
static final int DB_RECORDCOUNT
static final int DB_RECOVER
static final int DB_RECOVER_FATAL
static final int DB_REGION_INIT
static final int DB_RENUMBER
static final int DB_REP_CLIENT
static final int DB_REP_DUPMASTER = -30988
static final int DB_REP_HOLDELECTION = -30987
static final int DB_REP_LOGSONLY
static final int DB_REP_MASTER
static final int DB_REP_NEWMASTER = -30986
static final int DB_REP_NEWSITE = -30985
static final int DB_REP_OUTDATED = -30984
static final int DB_REP_PERMANENT
static final int DB_REP_UNAVAIL
static final int DB_REVSPLITOFF
static final int DB_RMW
static final int DB_RUNRECOVERY = -30982
static final int DB_SALVAGE
static final int DB_SECONDARY_BAD = -30981
static final int DB_SET
static final int DB_SET_LOCK_TIMEOUT
static final int DB_SET_RANGE
static final int DB_SET_RECNO
static final int DB_SET_TXN_TIMEOUT
static final int DB_SNAPSHOT
static final int DB_STAT_CLEAR
static final int DB_SYSTEM_MEM
static final int DB_THREAD
static final int DB_TRUNCATE
static final int DB_TXN_ABORT = 0
static final int DB_TXN_APPLY = 1
static final int DB_TXN_BACKWARD_ROLL = 3
static final int DB_TXN_FORWARD_ROLL = 4
static final int DB_TXN_NOSYNC
static final int DB_TXN_NOWAIT
static final int DB_TXN_PRINT = 8
static final int DB_TXN_SYNC
static final int DB_TXN_WRITE_NOSYNC
static final int DB_UNKNOWN = 5
static final int DB_UPGRADE
static final int DB_USE_ENVIRON
static final int DB_USE_ENVIRON_ROOT
static final int DB_VERB_CHKPOINT
static final int DB_VERB_DEADLOCK
static final int DB_VERB_RECOVERY
static final int DB_VERB_REPLICATION
static final int DB_VERB_WAITSFOR
static final int DB_VERIFY
static final int DB_VERIFY_BAD = -30980
static final int DB_VERSION_MAJOR
static final int DB_VERSION_MINOR
static final int DB_VERSION_PATCH
static final int DB_WRITECURSOR
static final int DB_XA_CREATE
static final int DB_XIDDATASIZE
static final int DB_YIELDCPU

Protected Member Functions

native void _finalize (DbErrcall errcall, String errpfx) throws Throwable
void finalize () throws Throwable

Package Functions

void _notify_dbenv_close ()

Static Package Functions

 [static initializer]

Private Member Functions

native void _init (DbEnv env, int flags) throws DbException
native void _notify_internal ()
native void append_recno_changed (DbAppendRecno append_recno) throws DbException
native void bt_compare_changed (DbBtreeCompare bt_compare) throws DbException
native void bt_prefix_changed (DbBtreePrefix bt_prefix) throws DbException
native void dup_compare_changed (DbDupCompare dup_compare) throws DbException
native void feedback_changed (DbFeedback feedback) throws DbException
native void hash_changed (DbHash hash) throws DbException

Static Private Member Functions

static void check_constant (int c1, int c2)
static native void one_time_init ()

Private Attributes

DbAppendRecno append_recno_ = null
DbBtreeCompare bt_compare_ = null
DbBtreePrefix bt_prefix_ = null
DbEnv constructor_env_ = null
DbEnv dbenv_ = null
DbDupCompare dup_compare_ = null
DbFeedback feedback_ = null
DbHash h_hash_ = null
long private_dbobj_ = 0
long private_info_ = 0
DbSecondaryKeyCreate secondary_key_create_ = null

Static Private Attributes

static boolean already_loaded_ = false

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

Generated by  Doxygen 1.6.0   Back to index