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

qdbm::Curia Class Reference

#include <xcuria.h>

Inheritance diagram for qdbm::Curia:

qdbm::ADBM qdbm::ADBM

List of all members.


Detailed Description

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

C++ API of Curia, the extended API of QDBM

Definition at line 25 of file Curia.java.


Public Member Functions

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

Static Public Member Functions

static synchronized String errmsg (int ecode)
static void remove (const char *name) throw (Curia_error)
static void remove (String name) throws CuriaException
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 sparse files
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

 Curia (const Curia &curia) throw (Curia_error)
Curiaoperator= (const Curia &curia) throw (Curia_error)

Static Private Member Functions

static synchronized final
native int 
crbnum (int index)
static synchronized final
native int 
crbusenum (int index)
static synchronized final
native int 
crclose (int index)
static synchronized final
native int 
crecode ()
static synchronized final
native String 
crerrmsg (int ecode)
static synchronized final
native int 
crfatalerror (int index)
static synchronized final
native double 
crfsizd (int index)
static synchronized final
native byte[] 
crget (int index, byte[] key, int ksiz, int start, int max)
static synchronized final
native byte[] 
crgetlob (int index, byte[] key, int ksiz, int start, int max)
static synchronized final
native void 
crinit ()
static synchronized final
native int 
criterinit (int index)
static synchronized final
native byte[] 
criternext (int index)
static synchronized final
native String 
crname (int index)
static synchronized final
native int 
cropen (String name, int omode, int bnum, int dnum)
static synchronized final
native int 
croptimize (int index, int bnum)
static synchronized final
native int 
crout (int index, byte[] key, int ksiz)
static synchronized final
native int 
croutlob (int index, byte[] key, int ksiz)
static synchronized final
native int 
crput (int index, byte[] key, int ksiz, byte[] val, int vsiz, int dmode)
static synchronized final
native int 
crputlob (int index, byte[] key, int ksiz, byte[] val, int vsiz, int dmode)
static synchronized final
native int 
crremove (String name)
static synchronized final
native int 
crrnum (int index)
static synchronized final
native int 
crrnumlob (int index)
static synchronized final
native int 
crsetalign (int index, int align)
static synchronized final
native int 
crsync (int index)
static synchronized final
native String 
crversion ()
static synchronized final
native int 
crvsiz (int index, byte[] key, int ksiz)
static synchronized final
native int 
crvsizlob (int index, byte[] key, int ksiz)
static synchronized final
native int 
crwritable (int index)

Private Attributes

CURIA * curia
 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