Logo Search packages:      
Sourcecode: db3 version File versions  Download package

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 int _close (int flags) throws DbException
native void _open (String file, String database, int type, int flags, int mode) throws DbException, FileNotFoundException
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_type ()
native Dbc join (Dbc curslist[], int flags) throws DbException
native void key_range (DbTxn txn, Dbt key, DbKeyRange range, int flags) throws DbException
synchronized void open (String file, String database, int type, int flags, int mode) throws DbException, FileNotFoundException
native int put (DbTxn txnid, Dbt key, Dbt data, int flags) throws DbException
synchronized native void remove (String file, String database, int flags) throws DbException, FileNotFoundException
synchronized native 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_cachesize (int gbytes, int bytes, int ncaches) throws DbException
void set_dup_compare (DbDupCompare dup_compare) 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)
native void set_h_ffactor (int h_ffactor)
void set_h_hash (DbHash h_hash) throws DbException
native void set_h_nelem (int h_nelem)
native void set_lorder (int lorder)
native void set_pagesize (long pagesize)
native void set_q_extentsize (int extent_size)
native void set_re_delim (int re_delim)
native void set_re_len (int re_len)
native void set_re_pad (int re_pad)
native void set_re_source (String re_source)
native Object stat (int flags) throws DbException
native int sync (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_BEFORE
static final int DB_BTREE = 1
static final int DB_CACHED_COUNTS
static final int DB_CDB_ALLDB
static final int DB_CHECKPOINT
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_CURLSN
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_DUP
static final int DB_DUPSORT
static final int DB_EXCL
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_RECNO
static final int DB_HASH = 2
static final int DB_INCOMPLETE = -30999
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_CONFLICT
static final int DB_LOCK_DEADLOCK = -30996
static final int DB_LOCK_DEFAULT
static final int DB_LOCK_DUMP = 0
static final int DB_LOCK_GET = 1
static final int DB_LOCK_IREAD = 4
static final int DB_LOCK_IWR = 5
static final int DB_LOCK_IWRITE = 3
static final int DB_LOCK_NG = 0
static final int DB_LOCK_NORUN
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 = 3
static final int DB_LOCK_PUT_ALL = 4
static final int DB_LOCK_PUT_OBJ = 5
static final int DB_LOCK_RANDOM
static final int DB_LOCK_READ = 1
static final int DB_LOCK_WRITE = 2
static final int DB_LOCK_YOUNGEST
static final int DB_LOCKDOWN
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_NOMMAP
static final int DB_NOORDERCHK
static final int DB_NOOVERWRITE
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_OLD_VERSION = -30990
static final int DB_ORDERCHKONLY
static final int DB_POSITION
static final int DB_PREV
static final int DB_PREV_NODUP
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_RENUMBER
static final int DB_REVSPLITOFF
static final int DB_RMW
static final int DB_RUNRECOVERY = -30989
static final int DB_SALVAGE
static final int DB_SET
static final int DB_SET_RANGE
static final int DB_SET_RECNO
static final int DB_SNAPSHOT
static final int DB_SYSTEM_MEM
static final int DB_THREAD
static final int DB_TRUNCATE
static final int DB_TXN_BACKWARD_ROLL = 1
static final int DB_TXN_FORWARD_ROLL = 2
static final int DB_TXN_NOSYNC
static final int DB_TXN_NOWAIT
static final int DB_TXN_OPENFILES = 3
static final int DB_TXN_REDO = 4
static final int DB_TXN_SYNC
static final int DB_TXN_UNDO = 5
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_WAITSFOR
static final int DB_VERIFY_BAD = -30988
static final int DB_WRITECURSOR
static final int DB_XA_CREATE

Protected Member Functions

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

Package Functions

void _notify_dbenv_close ()
 check_constant (DB_TXN_UNDO, DbConstants.DB_TXN_UNDO)
 check_constant (DB_TXN_REDO, DbConstants.DB_TXN_REDO)
 check_constant (DB_TXN_OPENFILES, DbConstants.DB_TXN_OPENFILES)
 check_constant (DB_TXN_FORWARD_ROLL, DbConstants.DB_TXN_FORWARD_ROLL)
 check_constant (DB_TXN_BACKWARD_ROLL, DbConstants.DB_TXN_BACKWARD_ROLL)
 check_constant (DB_VERIFY_BAD, DbConstants.DB_VERIFY_BAD)
 check_constant (DB_RUNRECOVERY, DbConstants.DB_RUNRECOVERY)
 check_constant (DB_OLD_VERSION, DbConstants.DB_OLD_VERSION)
 check_constant (DB_NOTFOUND, DbConstants.DB_NOTFOUND)
 check_constant (DB_NOSERVER_ID, DbConstants.DB_NOSERVER_ID)
 check_constant (DB_NOSERVER_HOME, DbConstants.DB_NOSERVER_HOME)
 check_constant (DB_NOSERVER, DbConstants.DB_NOSERVER)
 check_constant (DB_LOCK_NOTGRANTED, DbConstants.DB_LOCK_NOTGRANTED)
 check_constant (DB_LOCK_DEADLOCK, DbConstants.DB_LOCK_DEADLOCK)
 check_constant (DB_KEYEXIST, DbConstants.DB_KEYEXIST)
 check_constant (DB_KEYEMPTY, DbConstants.DB_KEYEMPTY)
 check_constant (DB_INCOMPLETE, DbConstants.DB_INCOMPLETE)
 one_time_init ()

Static Package Functions

static Db. load_db ()

Package Attributes

 DB_AFTER = DbConstants.DB_AFTER
 DB_AGGRESSIVE = DbConstants.DB_AGGRESSIVE
 DB_APPEND = DbConstants.DB_APPEND
 DB_ARCH_ABS = DbConstants.DB_ARCH_ABS
 DB_ARCH_DATA = DbConstants.DB_ARCH_DATA
 DB_ARCH_LOG = DbConstants.DB_ARCH_LOG
 DB_BEFORE = DbConstants.DB_BEFORE
 DB_CACHED_COUNTS = DbConstants.DB_CACHED_COUNTS
 DB_CDB_ALLDB = DbConstants.DB_CDB_ALLDB
 DB_CHECKPOINT = DbConstants.DB_CHECKPOINT
 DB_CLIENT = DbConstants.DB_CLIENT
 DB_CONSUME = DbConstants.DB_CONSUME
 DB_CONSUME_WAIT = DbConstants.DB_CONSUME_WAIT
 DB_CREATE = DbConstants.DB_CREATE
 DB_CURLSN = DbConstants.DB_CURLSN
 DB_CURRENT = DbConstants.DB_CURRENT
 DB_CXX_NO_EXCEPTIONS = DbConstants.DB_CXX_NO_EXCEPTIONS
 DB_DBT_MALLOC = DbConstants.DB_DBT_MALLOC
 DB_DBT_PARTIAL = DbConstants.DB_DBT_PARTIAL
 DB_DBT_REALLOC = DbConstants.DB_DBT_REALLOC
 DB_DBT_USERMEM = DbConstants.DB_DBT_USERMEM
 DB_DUP = DbConstants.DB_DUP
 DB_DUPSORT = DbConstants.DB_DUPSORT
 DB_EXCL = DbConstants.DB_EXCL
 DB_FIRST = DbConstants.DB_FIRST
 DB_FLUSH = DbConstants.DB_FLUSH
 DB_FORCE = DbConstants.DB_FORCE
 DB_GET_BOTH = DbConstants.DB_GET_BOTH
 DB_GET_RECNO = DbConstants.DB_GET_RECNO
 DB_INIT_CDB = DbConstants.DB_INIT_CDB
 DB_INIT_LOCK = DbConstants.DB_INIT_LOCK
 DB_INIT_LOG = DbConstants.DB_INIT_LOG
 DB_INIT_MPOOL = DbConstants.DB_INIT_MPOOL
 DB_INIT_TXN = DbConstants.DB_INIT_TXN
 DB_JOIN_ITEM = DbConstants.DB_JOIN_ITEM
 DB_JOIN_NOSORT = DbConstants.DB_JOIN_NOSORT
 DB_JOINENV = DbConstants.DB_JOINENV
 DB_KEYFIRST = DbConstants.DB_KEYFIRST
 DB_KEYLAST = DbConstants.DB_KEYLAST
 DB_LAST = DbConstants.DB_LAST
 DB_LOCK_CONFLICT = DbConstants.DB_LOCK_CONFLICT
 DB_LOCK_DEFAULT = DbConstants.DB_LOCK_DEFAULT
 DB_LOCK_NORUN = DbConstants.DB_LOCK_NORUN
 DB_LOCK_NOWAIT = DbConstants.DB_LOCK_NOWAIT
 DB_LOCK_OLDEST = DbConstants.DB_LOCK_OLDEST
 DB_LOCK_RANDOM = DbConstants.DB_LOCK_RANDOM
 DB_LOCK_YOUNGEST = DbConstants.DB_LOCK_YOUNGEST
 DB_LOCKDOWN = DbConstants.DB_LOCKDOWN
 DB_NEXT = DbConstants.DB_NEXT
 DB_NEXT_DUP = DbConstants.DB_NEXT_DUP
 DB_NEXT_NODUP = DbConstants.DB_NEXT_NODUP
 DB_NODUPDATA = DbConstants.DB_NODUPDATA
 DB_NOMMAP = DbConstants.DB_NOMMAP
 DB_NOORDERCHK = DbConstants.DB_NOORDERCHK
 DB_NOOVERWRITE = DbConstants.DB_NOOVERWRITE
 DB_NOSYNC = DbConstants.DB_NOSYNC
 DB_ORDERCHKONLY = DbConstants.DB_ORDERCHKONLY
 DB_POSITION = DbConstants.DB_POSITION
 DB_PREV = DbConstants.DB_PREV
 DB_PREV_NODUP = DbConstants.DB_PREV_NODUP
 DB_PRIVATE = DbConstants.DB_PRIVATE
 DB_RDONLY = DbConstants.DB_RDONLY
 DB_RECNUM = DbConstants.DB_RECNUM
 DB_RECORDCOUNT = DbConstants.DB_RECORDCOUNT
 DB_RECOVER = DbConstants.DB_RECOVER
 DB_RECOVER_FATAL = DbConstants.DB_RECOVER_FATAL
 DB_RENUMBER = DbConstants.DB_RENUMBER
 DB_REVSPLITOFF = DbConstants.DB_REVSPLITOFF
 DB_RMW = DbConstants.DB_RMW
 DB_SALVAGE = DbConstants.DB_SALVAGE
 DB_SET = DbConstants.DB_SET
 DB_SET_RANGE = DbConstants.DB_SET_RANGE
 DB_SET_RECNO = DbConstants.DB_SET_RECNO
 DB_SNAPSHOT = DbConstants.DB_SNAPSHOT
 DB_SYSTEM_MEM = DbConstants.DB_SYSTEM_MEM
 DB_THREAD = DbConstants.DB_THREAD
 DB_TRUNCATE = DbConstants.DB_TRUNCATE
 DB_TXN_NOSYNC = DbConstants.DB_TXN_NOSYNC
 DB_TXN_NOWAIT = DbConstants.DB_TXN_NOWAIT
 DB_TXN_SYNC = DbConstants.DB_TXN_SYNC
 DB_UPGRADE = DbConstants.DB_UPGRADE
 DB_USE_ENVIRON = DbConstants.DB_USE_ENVIRON
 DB_USE_ENVIRON_ROOT = DbConstants.DB_USE_ENVIRON_ROOT
 DB_VERB_CHKPOINT = DbConstants.DB_VERB_CHKPOINT
 DB_VERB_DEADLOCK = DbConstants.DB_VERB_DEADLOCK
 DB_VERB_RECOVERY = DbConstants.DB_VERB_RECOVERY
 DB_VERB_WAITSFOR = DbConstants.DB_VERB_WAITSFOR
 DB_WRITECURSOR = DbConstants.DB_WRITECURSOR
 DB_XA_CREATE = DbConstants.DB_XA_CREATE

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

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