public class Db
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
swigCMemOwn |
Database |
wrapper |
| Modifier | Constructor and Description |
|---|---|
|
Db(DbEnv dbenv,
int flags) |
protected |
Db(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
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 ret,
java.lang.String message) |
void |
errx(java.lang.String message) |
int |
exists(DbTxn txnid,
DatabaseEntry key,
int flags) |
RecordNumberAppender |
get_append_recno() |
int |
get_assoc_flags() |
java.util.Comparator |
get_bt_compare() |
BtreeCompressor |
get_bt_compress() |
BtreeCompressor |
get_bt_decompress() |
int |
get_bt_minkey() |
BtreePrefixCalculator |
get_bt_prefix() |
boolean |
get_byteswapped() |
int |
get_cachesize_ncache() |
long |
get_cachesize() |
java.lang.String |
get_create_dir() |
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_heap_regionsize() |
long |
get_heapsize() |
int |
get_lk_exclusive() |
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() |
PartitionHandler |
get_partition_callback() |
java.lang.String[] |
get_partition_dirs() |
DatabaseEntry |
get_partition_keys() |
int |
get_partition_parts() |
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 db_put_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_compress(BtreeCompressor bt_compress_fcn,
BtreeCompressor bt_decompress_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_create_dir(java.lang.String dir) |
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_heap_regionsize(int npages) |
void |
set_heapsize(long bytes) |
void |
set_lk_exclusive(int nowait) |
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_partition_dirs(java.lang.String[] dirp) |
void |
set_partition(int parts,
DatabaseEntry keys,
PartitionHandler db_partition_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) |
void |
sort_multiple(DatabaseEntry key,
DatabaseEntry data) |
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) |
protected boolean swigCMemOwn
public Database wrapper
protected Db(long cPtr, boolean cMemoryOwn)
public Db(DbEnv dbenv, int flags) throws DatabaseException
DatabaseExceptionprotected static long getCPtr(Db obj)
public boolean getPrivateDbEnv()
throws DatabaseException
DatabaseExceptionpublic void close(int flags)
throws DatabaseException
DatabaseExceptionpublic DbEnv get_env() throws DatabaseException
DatabaseExceptionpublic RecordNumberAppender get_append_recno() throws DatabaseException
DatabaseExceptionpublic java.util.Comparator get_bt_compare()
throws DatabaseException
DatabaseExceptionpublic BtreeCompressor get_bt_compress() throws DatabaseException
DatabaseExceptionpublic BtreeCompressor get_bt_decompress() throws DatabaseException
DatabaseExceptionpublic BtreePrefixCalculator get_bt_prefix() throws DatabaseException
DatabaseExceptionpublic FeedbackHandler get_feedback() throws DatabaseException
DatabaseExceptionpublic java.util.Comparator get_h_compare()
throws DatabaseException
DatabaseExceptionpublic java.util.Comparator get_dup_compare()
throws DatabaseException
DatabaseExceptionpublic Hasher get_h_hash() throws DatabaseException
DatabaseExceptionpublic SecondaryKeyCreator get_seckey_create() throws DatabaseException
DatabaseExceptionpublic SecondaryMultiKeyCreator get_secmultikey_create() throws DatabaseException
DatabaseExceptionpublic void set_secmultikey_create(SecondaryMultiKeyCreator secmultikey_create_handler)
public void set_foreignmultikey_nullifier(ForeignMultiKeyNullifier nullify)
public PartitionHandler get_partition_callback() throws DatabaseException
DatabaseExceptionpublic void remove(java.lang.String file,
java.lang.String database,
int flags)
throws DatabaseException,
java.io.FileNotFoundException
DatabaseExceptionjava.io.FileNotFoundExceptionpublic void rename(java.lang.String file,
java.lang.String database,
java.lang.String newname,
int flags)
throws DatabaseException,
java.io.FileNotFoundException
DatabaseExceptionjava.io.FileNotFoundExceptionpublic boolean verify(java.lang.String file,
java.lang.String database,
java.io.OutputStream outfile,
int flags)
throws DatabaseException,
java.io.FileNotFoundException
DatabaseExceptionjava.io.FileNotFoundExceptionpublic ErrorHandler get_errcall()
public void set_errcall(ErrorHandler db_errcall_fcn)
public java.io.OutputStream get_error_stream()
public void set_error_stream(java.io.OutputStream stream)
public void set_errpfx(java.lang.String errpfx)
public java.lang.String get_errpfx()
public java.io.OutputStream get_message_stream()
public void set_message_stream(java.io.OutputStream stream)
public MessageHandler get_msgcall()
public void set_msgcall(MessageHandler db_msgcall_fcn)
public void set_paniccall(PanicHandler db_panic_fcn) throws DatabaseException
DatabaseExceptionpublic PanicHandler get_paniccall() throws DatabaseException
DatabaseExceptionpublic void associate(DbTxn txnid, Db secondary, SecondaryKeyCreator callback, int flags) throws DatabaseException
DatabaseExceptionpublic void associate_foreign(Db primary, ForeignKeyNullifier callback, int flags) throws DatabaseException
DatabaseExceptionpublic void compact(DbTxn txnid, DatabaseEntry start, DatabaseEntry stop, CompactStats c_data, int flags, DatabaseEntry end) throws DatabaseException
DatabaseExceptionpublic Dbc cursor(DbTxn txnid, int flags) throws DatabaseException
DatabaseExceptionpublic int del(DbTxn txnid, DatabaseEntry key, int flags) throws DatabaseException
DatabaseExceptionpublic void err(int ret,
java.lang.String message)
public void errx(java.lang.String message)
public int exists(DbTxn txnid, DatabaseEntry key, int flags) throws DatabaseException
DatabaseExceptionpublic int get(DbTxn txnid, DatabaseEntry key, DatabaseEntry data, int flags) throws DatabaseException
DatabaseExceptionpublic int get_assoc_flags()
throws DatabaseException
DatabaseExceptionpublic boolean get_byteswapped()
throws DatabaseException
DatabaseExceptionpublic long get_cachesize()
throws DatabaseException
DatabaseExceptionpublic int get_cachesize_ncache()
throws DatabaseException
DatabaseExceptionpublic java.lang.String get_create_dir()
throws DatabaseException
DatabaseExceptionpublic java.lang.String get_filename()
throws DatabaseException
DatabaseExceptionpublic java.lang.String get_dbname()
throws DatabaseException
DatabaseExceptionpublic int get_encrypt_flags()
throws DatabaseException
DatabaseExceptionpublic int get_flags()
throws DatabaseException
DatabaseExceptionpublic int get_lk_exclusive()
throws DatabaseException
DatabaseExceptionpublic int get_lorder()
throws DatabaseException
DatabaseExceptionpublic DbMpoolFile get_mpf() throws DatabaseException
DatabaseExceptionpublic int get_open_flags()
throws DatabaseException
DatabaseExceptionpublic int get_pagesize()
throws DatabaseException
DatabaseExceptionpublic int get_bt_minkey()
throws DatabaseException
DatabaseExceptionpublic long get_heapsize()
throws DatabaseException
DatabaseExceptionpublic int get_heap_regionsize()
throws DatabaseException
DatabaseExceptionpublic int get_h_ffactor()
throws DatabaseException
DatabaseExceptionpublic int get_h_nelem()
throws DatabaseException
DatabaseExceptionpublic int get_re_delim()
throws DatabaseException
DatabaseExceptionpublic int get_priority()
throws DatabaseException
DatabaseExceptionpublic java.lang.String[] get_partition_dirs()
throws DatabaseException
DatabaseExceptionpublic DatabaseEntry get_partition_keys() throws DatabaseException
DatabaseExceptionpublic int get_partition_parts()
throws DatabaseException
DatabaseExceptionpublic int get_re_len()
throws DatabaseException
DatabaseExceptionpublic int get_re_pad()
throws DatabaseException
DatabaseExceptionpublic java.lang.String get_re_source()
throws DatabaseException
DatabaseExceptionpublic int get_q_extentsize()
throws DatabaseException
DatabaseExceptionpublic boolean get_multiple()
throws DatabaseException
DatabaseExceptionpublic boolean get_transactional()
throws DatabaseException
DatabaseExceptionpublic int get_type()
throws DatabaseException
DatabaseExceptionpublic Dbc join(Dbc[] curslist, int flags) throws DatabaseException
DatabaseExceptionpublic void key_range(DbTxn txnid, DatabaseEntry key, KeyRange key_range, int flags) throws DatabaseException
DatabaseExceptionpublic void open(DbTxn txnid, java.lang.String file, java.lang.String database, int type, int flags, int mode) throws DatabaseException, java.io.FileNotFoundException
DatabaseExceptionjava.io.FileNotFoundExceptionpublic int pget(DbTxn txnid, DatabaseEntry key, DatabaseEntry pkey, DatabaseEntry data, int flags) throws DatabaseException
DatabaseExceptionpublic int put(DbTxn txnid, DatabaseEntry key, DatabaseEntry db_put_data, int flags) throws DatabaseException
DatabaseExceptionpublic void set_append_recno(RecordNumberAppender db_append_recno_fcn) throws DatabaseException
DatabaseExceptionpublic void set_bt_compare(java.util.Comparator bt_compare_fcn)
throws DatabaseException
DatabaseExceptionpublic void set_bt_minkey(int bt_minkey)
throws DatabaseException
DatabaseExceptionpublic void set_bt_compress(BtreeCompressor bt_compress_fcn, BtreeCompressor bt_decompress_fcn) throws DatabaseException
DatabaseExceptionpublic void set_bt_prefix(BtreePrefixCalculator bt_prefix_fcn) throws DatabaseException
DatabaseExceptionpublic void set_cachesize(long bytes,
int ncache)
throws DatabaseException
DatabaseExceptionpublic void set_create_dir(java.lang.String dir)
throws DatabaseException
DatabaseExceptionpublic void set_dup_compare(java.util.Comparator dup_compare_fcn)
throws DatabaseException
DatabaseExceptionpublic void set_encrypt(java.lang.String passwd,
int flags)
throws DatabaseException
DatabaseExceptionpublic void set_feedback(FeedbackHandler db_feedback_fcn) throws DatabaseException
DatabaseExceptionpublic void set_flags(int flags)
throws DatabaseException
DatabaseExceptionpublic void set_heapsize(long bytes)
throws DatabaseException
DatabaseExceptionpublic void set_heap_regionsize(int npages)
throws DatabaseException
DatabaseExceptionpublic void set_h_compare(java.util.Comparator h_compare_fcn)
throws DatabaseException
DatabaseExceptionpublic void set_h_ffactor(int h_ffactor)
throws DatabaseException
DatabaseExceptionpublic void set_h_hash(Hasher h_hash_fcn) throws DatabaseException
DatabaseExceptionpublic void set_h_nelem(int h_nelem)
throws DatabaseException
DatabaseExceptionpublic void set_lk_exclusive(int nowait)
throws DatabaseException
DatabaseExceptionpublic void set_lorder(int lorder)
throws DatabaseException
DatabaseExceptionpublic void set_pagesize(long pagesize)
throws DatabaseException
DatabaseExceptionpublic void set_partition(int parts,
DatabaseEntry keys,
PartitionHandler db_partition_fcn)
throws DatabaseException
DatabaseExceptionpublic void set_partition_dirs(java.lang.String[] dirp)
throws DatabaseException
DatabaseExceptionpublic void set_priority(int priority)
throws DatabaseException
DatabaseExceptionpublic void set_re_delim(int re_delim)
throws DatabaseException
DatabaseExceptionpublic void set_re_len(int re_len)
throws DatabaseException
DatabaseExceptionpublic void set_re_pad(int re_pad)
throws DatabaseException
DatabaseExceptionpublic void set_re_source(java.lang.String source)
throws DatabaseException
DatabaseExceptionpublic void set_q_extentsize(int extentsize)
throws DatabaseException
DatabaseExceptionpublic void sort_multiple(DatabaseEntry key, DatabaseEntry data) throws DatabaseException
DatabaseExceptionpublic java.lang.Object stat(DbTxn txnid, int flags) throws DatabaseException
DatabaseExceptionpublic void sync(int flags)
throws DatabaseException
DatabaseExceptionpublic int truncate(DbTxn txnid, int flags) throws DatabaseException
DatabaseExceptionpublic void upgrade(java.lang.String file,
int flags)
throws DatabaseException
DatabaseException