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