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

qdbm::Depot Class Reference

#include <xdepot.h>

Inheritance diagram for qdbm::Depot:

qdbm::ADBM qdbm::ADBM

List of all members.


Detailed Description

The Java API of Depot, the basic API of QDBM. This class depends on the native library `jqdbm'.

C++ API of Depot, the basic API of QDBM.

Definition at line 25 of file Depot.java.


Public Member Functions

virtual int bnum () throw (Depot_error)
int bnum () throws DepotException
virtual int busenum () throw (Depot_error)
int busenum () throws DepotException
virtual void close () throw (Depot_error)
void close () throws DepotException
void delete (byte[] key) throws DepotException
virtual void deleterec (const Datum &key) throw (Depot_error)
 Depot (const char *name, int omode=Depot::OREADER, int bnum=-1) throw (Depot_error)
 Depot (String name) throws DepotException
 Depot (String name, int omode, int bnum) throws DepotException
virtual bool error () throw (Depot_error)
boolean error () throws DepotException
virtual bool fatalerror () throw (Depot_error)
boolean fatalerror () throws DepotException
virtual int fdesc () throw (Depot_error)
byte[] fetch (byte[] key) throws DepotException
virtual Datum fetchrec (const Datum &key) throw (Depot_error)
virtual Datum firstkey () throw (Depot_error)
byte[] firstkey () throws DepotException
virtual int fsiz () throw (Depot_error)
int fsiz () throws DepotException
virtual char * get (const char *kbuf, int ksiz, int start=0, int max=-1, int *sp=0) throw (Depot_error)
byte[] get (byte[] key) throws DepotException
byte[] get (byte[] key, int start, int max) throws DepotException
virtual int getwb (const char *kbuf, int ksiz, int start, int max, char *vbuf) throw (Depot_error)
virtual int inode () throw (Depot_error)
virtual void iterinit () throw (Depot_error)
void iterinit () throws DepotException
virtual char * iternext (int *sp=0) throw (Depot_error)
byte[] iternext () throws DepotException
virtual int mtime () throw (Depot_error)
virtual char * name () throw (Depot_error)
String name () throws DepotException
virtual Datum nextkey () throw (Depot_error)
byte[] nextkey () throws DepotException
virtual void optimize (int bnum=-1) throw (Depot_error)
void optimize (int bnum) throws DepotException
virtual void out (const char *kbuf, int ksiz) throw (Depot_error)
void out (byte[] key) throws DepotException
virtual void put (const char *kbuf, int ksiz, const char *vbuf, int vsiz, int dmode=Depot::DOVER) throw (Depot_error)
void put (byte[] key, byte[] val) throws DepotException
void put (byte[] key, byte[] val, int dmode) throws DepotException
virtual int rnum () throw (Depot_error)
int rnum () throws DepotException
virtual void setalign (int align) throw (Depot_error)
void setalign (int align) throws DepotException
void store (byte[] key, byte[] val, boolean replace) throws DepotException
virtual void storerec (const Datum &key, const Datum &val, bool replace=true) throw (Depot_error)
virtual void sync () throw (Depot_error)
void sync () throws DepotException
virtual int vsiz (const char *kbuf, int ksiz) throw (Depot_error)
int vsiz (byte[] key) throws DepotException
virtual bool writable () throw (Depot_error)
boolean writable () throws DepotException
virtual ~Depot () throw ()

Static Public Member Functions

static synchronized String errmsg (int ecode)
static void remove (const char *name) throw (Depot_error)
static void remove (String name) throws DepotException
static const char * version () throw ()
static synchronized String version ()

Static Public Attributes

static const int DCAT
 write mode: concatenate values
static final int DCAT = 2
static const int DKEEP
 write mode: keep the existing value
static final int DKEEP = 1
static const int DOVER
 write mode: overwrite the existing value
static final int DOVER = 0
static const int EALLOC
 error code: memory allocation error
static final int EALLOC = 6
static const int EBROKEN
 error code: broken database file
static final int EBROKEN = 3
static const int ECLOSE
 error code: close error
static final int ECLOSE = 9
static const int EFATAL
 error code: with fatal error
static final int EFATAL = 1
static const int EKEEP
 error code: existing record
static final int EKEEP = 4
static const int ELOCK
 error code: lock error
static final int ELOCK = 16
static const int EMAP
 error code: memory mapping error
static final int EMAP = 7
static const int EMISC
 error code: miscellaneous error
static final int EMISC = 20
static const int EMKDIR
 error code: mkdir error
static final int EMKDIR = 18
static const int EMODE
 error code: invalid mode
static final int EMODE = 2
static const int ENOERR
 error code: no error
static final int ENOERR = 0
static const int ENOITEM
 error code: no item found
static final int ENOITEM = 5
static const int EOPEN
 error code: open error
static final int EOPEN = 8
static const int EREAD
 error code: read error
static final int EREAD = 14
static const int ERMDIR
 error code: rmdir error
static final int ERMDIR = 19
static const int ESEEK
 error code: seek error
static final int ESEEK = 13
static const int ESTAT
 error code: stat error
static final int ESTAT = 12
static const int ESYNC
 error code: sync error
static final int ESYNC = 11
static const int ETRUNC
 error code: trunc error
static final int ETRUNC = 10
static const int EUNLINK
 error code: unlink error
static final int EUNLINK = 17
static const int EWRITE
 error code: write error
static final int EWRITE = 15
static const int OCREAT
 open mode: writer creating
static final int OCREAT = 1 << 2
static const int OLCKNB
 open mode: lock without blocking
static final int OLCKNB = 1 << 5
static const int ONOLCK
 open mode: open without locking
static final int ONOLCK = 1 << 4
static const int OREADER
 open mode: open as a reader
static final int OREADER = 1 << 0
static const int OSPARSE
 open mode: create as a sparse file
static final int OSPARSE = 1 << 6
static const int OTRUNC
 open mode: writer truncating
static final int OTRUNC = 1 << 3
static const int OWRITER
 open mode: open as a writer
static final int OWRITER = 1 << 1

Protected Member Functions

void finalize () throws Throwable

Static Package Functions

 [static initializer]

Private Member Functions

 Depot (const Depot &depot) throw (Depot_error)
Depotoperator= (const Depot &depot) throw (Depot_error)

Static Private Member Functions

static synchronized final
native int 
dpbnum (int index)
static synchronized final
native int 
dpbusenum (int index)
static synchronized final
native int 
dpclose (int index)
static synchronized final
native int 
dpecode ()
static synchronized final
native String 
dperrmsg (int ecode)
static synchronized final
native int 
dpfatalerror (int index)
static synchronized final
native int 
dpfsiz (int index)
static synchronized final
native byte[] 
dpget (int index, byte[] key, int ksiz, int start, int max)
static synchronized final
native void 
dpinit ()
static synchronized final
native int 
dpiterinit (int index)
static synchronized final
native byte[] 
dpiternext (int index)
static synchronized final
native String 
dpname (int index)
static synchronized final
native int 
dpopen (String name, int omode, int bnum)
static synchronized final
native int 
dpoptimize (int index, int bnum)
static synchronized final
native int 
dpout (int index, byte[] key, int ksiz)
static synchronized final
native int 
dpput (int index, byte[] key, int ksiz, byte[] val, int vsiz, int dmode)
static synchronized final
native int 
dpremove (String name)
static synchronized final
native int 
dprnum (int index)
static synchronized final
native int 
dpsetalign (int index, int align)
static synchronized final
native int 
dpsync (int index)
static synchronized final
native String 
dpversion ()
static synchronized final
native int 
dpvsiz (int index, byte[] key, int ksiz)
static synchronized final
native int 
dpwritable (int index)

Private Attributes

DEPOT * depot
 internal database handle
int index

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

Generated by  Doxygen 1.6.0   Back to index