com.sleepycat.db.internal
Class Db
java.lang.Object
com.sleepycat.db.internal.Db
public class Db
- extends java.lang.Object
Constructor Summary |
|
Db(DbEnv dbenv,
int flags)
|
protected |
Db(long cPtr,
boolean cMemoryOwn)
|
Method Summary |
void |
associate_foreign(Db primary,
ForeignKeyNullifier callback,
int flags)
|
void |
associate(DbTxn txnid,
Db secondary,
SecondaryKeyCreator callback,
int flags)
|
void |
close(int flags)
|
void |
compact(DbTxn txnid,
DatabaseEntry start,
DatabaseEntry stop,
CompactStats c_data,
int flags,
DatabaseEntry end)
|
Dbc |
cursor(DbTxn txnid,
int flags)
|
int |
del(DbTxn txnid,
DatabaseEntry key,
int flags)
|
void |
err(int error,
java.lang.String message)
|
void |
errx(java.lang.String message)
|
int |
exists(DbTxn txnid,
DatabaseEntry key,
int flags)
|
RecordNumberAppender |
get_append_recno()
|
java.util.Comparator |
get_bt_compare()
|
int |
get_bt_minkey()
|
BtreePrefixCalculator |
get_bt_prefix()
|
boolean |
get_byteswapped()
|
int |
get_cachesize_ncache()
|
long |
get_cachesize()
|
java.lang.String |
get_dbname()
|
java.util.Comparator |
get_dup_compare()
|
int |
get_encrypt_flags()
|
DbEnv |
get_env()
|
ErrorHandler |
get_errcall()
|
java.io.OutputStream |
get_error_stream()
|
java.lang.String |
get_errpfx()
|
FeedbackHandler |
get_feedback()
|
java.lang.String |
get_filename()
|
int |
get_flags()
|
java.util.Comparator |
get_h_compare()
|
int |
get_h_ffactor()
|
Hasher |
get_h_hash()
|
int |
get_h_nelem()
|
int |
get_lorder()
|
java.io.OutputStream |
get_message_stream()
|
DbMpoolFile |
get_mpf()
|
MessageHandler |
get_msgcall()
|
boolean |
get_multiple()
|
int |
get_open_flags()
|
int |
get_pagesize()
|
PanicHandler |
get_paniccall()
|
int |
get_priority()
|
int |
get_q_extentsize()
|
int |
get_re_delim()
|
int |
get_re_len()
|
int |
get_re_pad()
|
java.lang.String |
get_re_source()
|
SecondaryKeyCreator |
get_seckey_create()
|
SecondaryMultiKeyCreator |
get_secmultikey_create()
|
boolean |
get_transactional()
|
int |
get_type()
|
int |
get(DbTxn txnid,
DatabaseEntry key,
DatabaseEntry data,
int flags)
|
protected static long |
getCPtr(Db obj)
|
boolean |
getPrivateDbEnv()
|
Dbc |
join(Dbc[] curslist,
int flags)
|
void |
key_range(DbTxn txnid,
DatabaseEntry key,
KeyRange key_range,
int flags)
|
void |
open(DbTxn txnid,
java.lang.String file,
java.lang.String database,
int type,
int flags,
int mode)
|
int |
pget(DbTxn txnid,
DatabaseEntry key,
DatabaseEntry pkey,
DatabaseEntry data,
int flags)
|
int |
put(DbTxn txnid,
DatabaseEntry key,
DatabaseEntry data,
int flags)
|
void |
remove(java.lang.String file,
java.lang.String database,
int flags)
|
void |
rename(java.lang.String file,
java.lang.String database,
java.lang.String newname,
int flags)
|
void |
set_append_recno(RecordNumberAppender db_append_recno_fcn)
|
void |
set_bt_compare(java.util.Comparator bt_compare_fcn)
|
void |
set_bt_minkey(int bt_minkey)
|
void |
set_bt_prefix(BtreePrefixCalculator bt_prefix_fcn)
|
void |
set_cachesize(long bytes,
int ncache)
|
void |
set_dup_compare(java.util.Comparator dup_compare_fcn)
|
void |
set_encrypt(java.lang.String passwd,
int flags)
|
void |
set_errcall(ErrorHandler db_errcall_fcn)
|
void |
set_error_stream(java.io.OutputStream stream)
|
void |
set_errpfx(java.lang.String errpfx)
|
void |
set_feedback(FeedbackHandler db_feedback_fcn)
|
void |
set_flags(int flags)
|
void |
set_foreignmultikey_nullifier(ForeignMultiKeyNullifier nullify)
|
void |
set_h_compare(java.util.Comparator h_compare_fcn)
|
void |
set_h_ffactor(int h_ffactor)
|
void |
set_h_hash(Hasher h_hash_fcn)
|
void |
set_h_nelem(int h_nelem)
|
void |
set_lorder(int lorder)
|
void |
set_message_stream(java.io.OutputStream stream)
|
void |
set_msgcall(MessageHandler db_msgcall_fcn)
|
void |
set_pagesize(long pagesize)
|
void |
set_paniccall(PanicHandler db_panic_fcn)
|
void |
set_priority(int priority)
|
void |
set_q_extentsize(int extentsize)
|
void |
set_re_delim(int re_delim)
|
void |
set_re_len(int re_len)
|
void |
set_re_pad(int re_pad)
|
void |
set_re_source(java.lang.String source)
|
void |
set_secmultikey_create(SecondaryMultiKeyCreator secmultikey_create_handler)
|
java.lang.Object |
stat(DbTxn txnid,
int flags)
|
void |
sync(int flags)
|
int |
truncate(DbTxn txnid,
int flags)
|
void |
upgrade(java.lang.String file,
int flags)
|
boolean |
verify(java.lang.String file,
java.lang.String database,
java.io.OutputStream outfile,
int flags)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
swigCMemOwn
protected boolean swigCMemOwn
wrapper
public Database wrapper
Db
protected Db(long cPtr,
boolean cMemoryOwn)
Db
public Db(DbEnv dbenv,
int flags)
throws DatabaseException
- Throws:
DatabaseException
getCPtr
protected static long getCPtr(Db obj)
getPrivateDbEnv
public boolean getPrivateDbEnv()
throws DatabaseException
- Throws:
DatabaseException
close
public void close(int flags)
throws DatabaseException
- Throws:
DatabaseException
get_env
public DbEnv get_env()
throws DatabaseException
- Throws:
DatabaseException
get_append_recno
public RecordNumberAppender get_append_recno()
throws DatabaseException
- Throws:
DatabaseException
get_bt_compare
public java.util.Comparator get_bt_compare()
throws DatabaseException
- Throws:
DatabaseException
get_bt_prefix
public BtreePrefixCalculator get_bt_prefix()
throws DatabaseException
- Throws:
DatabaseException
get_feedback
public FeedbackHandler get_feedback()
throws DatabaseException
- Throws:
DatabaseException
get_h_compare
public java.util.Comparator get_h_compare()
throws DatabaseException
- Throws:
DatabaseException
get_dup_compare
public java.util.Comparator get_dup_compare()
throws DatabaseException
- Throws:
DatabaseException
get_h_hash
public Hasher get_h_hash()
throws DatabaseException
- Throws:
DatabaseException
get_seckey_create
public SecondaryKeyCreator get_seckey_create()
throws DatabaseException
- Throws:
DatabaseException
get_secmultikey_create
public SecondaryMultiKeyCreator get_secmultikey_create()
throws DatabaseException
- Throws:
DatabaseException
set_secmultikey_create
public void set_secmultikey_create(SecondaryMultiKeyCreator secmultikey_create_handler)
set_foreignmultikey_nullifier
public void set_foreignmultikey_nullifier(ForeignMultiKeyNullifier nullify)
remove
public void remove(java.lang.String file,
java.lang.String database,
int flags)
throws DatabaseException,
java.io.FileNotFoundException
- Throws:
DatabaseException
java.io.FileNotFoundException
rename
public void rename(java.lang.String file,
java.lang.String database,
java.lang.String newname,
int flags)
throws DatabaseException,
java.io.FileNotFoundException
- Throws:
DatabaseException
java.io.FileNotFoundException
verify
public boolean verify(java.lang.String file,
java.lang.String database,
java.io.OutputStream outfile,
int flags)
throws DatabaseException,
java.io.FileNotFoundException
- Throws:
DatabaseException
java.io.FileNotFoundException
get_errcall
public ErrorHandler get_errcall()
set_errcall
public void set_errcall(ErrorHandler db_errcall_fcn)
get_error_stream
public java.io.OutputStream get_error_stream()
set_error_stream
public void set_error_stream(java.io.OutputStream stream)
set_errpfx
public void set_errpfx(java.lang.String errpfx)
get_errpfx
public java.lang.String get_errpfx()
get_message_stream
public java.io.OutputStream get_message_stream()
set_message_stream
public void set_message_stream(java.io.OutputStream stream)
get_msgcall
public MessageHandler get_msgcall()
set_msgcall
public void set_msgcall(MessageHandler db_msgcall_fcn)
set_paniccall
public void set_paniccall(PanicHandler db_panic_fcn)
throws DatabaseException
- Throws:
DatabaseException
get_paniccall
public PanicHandler get_paniccall()
throws DatabaseException
- Throws:
DatabaseException
associate
public void associate(DbTxn txnid,
Db secondary,
SecondaryKeyCreator callback,
int flags)
throws DatabaseException
- Throws:
DatabaseException
associate_foreign
public void associate_foreign(Db primary,
ForeignKeyNullifier callback,
int flags)
throws DatabaseException
- Throws:
DatabaseException
compact
public void compact(DbTxn txnid,
DatabaseEntry start,
DatabaseEntry stop,
CompactStats c_data,
int flags,
DatabaseEntry end)
throws DatabaseException
- Throws:
DatabaseException
cursor
public Dbc cursor(DbTxn txnid,
int flags)
throws DatabaseException
- Throws:
DatabaseException
del
public int del(DbTxn txnid,
DatabaseEntry key,
int flags)
throws DatabaseException
- Throws:
DatabaseException
err
public void err(int error,
java.lang.String message)
errx
public void errx(java.lang.String message)
exists
public int exists(DbTxn txnid,
DatabaseEntry key,
int flags)
throws DatabaseException
- Throws:
DatabaseException
get
public int get(DbTxn txnid,
DatabaseEntry key,
DatabaseEntry data,
int flags)
throws DatabaseException
- Throws:
DatabaseException
get_byteswapped
public boolean get_byteswapped()
throws DatabaseException
- Throws:
DatabaseException
get_cachesize
public long get_cachesize()
throws DatabaseException
- Throws:
DatabaseException
get_cachesize_ncache
public int get_cachesize_ncache()
throws DatabaseException
- Throws:
DatabaseException
get_filename
public java.lang.String get_filename()
throws DatabaseException
- Throws:
DatabaseException
get_dbname
public java.lang.String get_dbname()
throws DatabaseException
- Throws:
DatabaseException
get_encrypt_flags
public int get_encrypt_flags()
throws DatabaseException
- Throws:
DatabaseException
get_flags
public int get_flags()
throws DatabaseException
- Throws:
DatabaseException
get_lorder
public int get_lorder()
throws DatabaseException
- Throws:
DatabaseException
get_mpf
public DbMpoolFile get_mpf()
throws DatabaseException
- Throws:
DatabaseException
get_open_flags
public int get_open_flags()
throws DatabaseException
- Throws:
DatabaseException
get_pagesize
public int get_pagesize()
throws DatabaseException
- Throws:
DatabaseException
get_bt_minkey
public int get_bt_minkey()
throws DatabaseException
- Throws:
DatabaseException
get_h_ffactor
public int get_h_ffactor()
throws DatabaseException
- Throws:
DatabaseException
get_h_nelem
public int get_h_nelem()
throws DatabaseException
- Throws:
DatabaseException
get_re_delim
public int get_re_delim()
throws DatabaseException
- Throws:
DatabaseException
get_priority
public int get_priority()
throws DatabaseException
- Throws:
DatabaseException
get_re_len
public int get_re_len()
throws DatabaseException
- Throws:
DatabaseException
get_re_pad
public int get_re_pad()
throws DatabaseException
- Throws:
DatabaseException
get_re_source
public java.lang.String get_re_source()
throws DatabaseException
- Throws:
DatabaseException
get_q_extentsize
public int get_q_extentsize()
throws DatabaseException
- Throws:
DatabaseException
get_multiple
public boolean get_multiple()
throws DatabaseException
- Throws:
DatabaseException
get_transactional
public boolean get_transactional()
throws DatabaseException
- Throws:
DatabaseException
get_type
public int get_type()
throws DatabaseException
- Throws:
DatabaseException
join
public Dbc join(Dbc[] curslist,
int flags)
throws DatabaseException
- Throws:
DatabaseException
key_range
public void key_range(DbTxn txnid,
DatabaseEntry key,
KeyRange key_range,
int flags)
throws DatabaseException
- Throws:
DatabaseException
open
public void open(DbTxn txnid,
java.lang.String file,
java.lang.String database,
int type,
int flags,
int mode)
throws DatabaseException,
java.io.FileNotFoundException
- Throws:
DatabaseException
java.io.FileNotFoundException
pget
public int pget(DbTxn txnid,
DatabaseEntry key,
DatabaseEntry pkey,
DatabaseEntry data,
int flags)
throws DatabaseException
- Throws:
DatabaseException
put
public int put(DbTxn txnid,
DatabaseEntry key,
DatabaseEntry data,
int flags)
throws DatabaseException
- Throws:
DatabaseException
set_append_recno
public void set_append_recno(RecordNumberAppender db_append_recno_fcn)
throws DatabaseException
- Throws:
DatabaseException
set_bt_compare
public void set_bt_compare(java.util.Comparator bt_compare_fcn)
throws DatabaseException
- Throws:
DatabaseException
set_bt_minkey
public void set_bt_minkey(int bt_minkey)
throws DatabaseException
- Throws:
DatabaseException
set_bt_prefix
public void set_bt_prefix(BtreePrefixCalculator bt_prefix_fcn)
throws DatabaseException
- Throws:
DatabaseException
set_cachesize
public void set_cachesize(long bytes,
int ncache)
throws DatabaseException
- Throws:
DatabaseException
set_dup_compare
public void set_dup_compare(java.util.Comparator dup_compare_fcn)
throws DatabaseException
- Throws:
DatabaseException
set_encrypt
public void set_encrypt(java.lang.String passwd,
int flags)
throws DatabaseException
- Throws:
DatabaseException
set_feedback
public void set_feedback(FeedbackHandler db_feedback_fcn)
throws DatabaseException
- Throws:
DatabaseException
set_flags
public void set_flags(int flags)
throws DatabaseException
- Throws:
DatabaseException
set_h_compare
public void set_h_compare(java.util.Comparator h_compare_fcn)
throws DatabaseException
- Throws:
DatabaseException
set_h_ffactor
public void set_h_ffactor(int h_ffactor)
throws DatabaseException
- Throws:
DatabaseException
set_h_hash
public void set_h_hash(Hasher h_hash_fcn)
throws DatabaseException
- Throws:
DatabaseException
set_h_nelem
public void set_h_nelem(int h_nelem)
throws DatabaseException
- Throws:
DatabaseException
set_lorder
public void set_lorder(int lorder)
throws DatabaseException
- Throws:
DatabaseException
set_pagesize
public void set_pagesize(long pagesize)
throws DatabaseException
- Throws:
DatabaseException
set_priority
public void set_priority(int priority)
throws DatabaseException
- Throws:
DatabaseException
set_re_delim
public void set_re_delim(int re_delim)
throws DatabaseException
- Throws:
DatabaseException
set_re_len
public void set_re_len(int re_len)
throws DatabaseException
- Throws:
DatabaseException
set_re_pad
public void set_re_pad(int re_pad)
throws DatabaseException
- Throws:
DatabaseException
set_re_source
public void set_re_source(java.lang.String source)
throws DatabaseException
- Throws:
DatabaseException
set_q_extentsize
public void set_q_extentsize(int extentsize)
throws DatabaseException
- Throws:
DatabaseException
stat
public java.lang.Object stat(DbTxn txnid,
int flags)
throws DatabaseException
- Throws:
DatabaseException
sync
public void sync(int flags)
throws DatabaseException
- Throws:
DatabaseException
truncate
public int truncate(DbTxn txnid,
int flags)
throws DatabaseException
- Throws:
DatabaseException
upgrade
public void upgrade(java.lang.String file,
int flags)
throws DatabaseException
- Throws:
DatabaseException