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

void qdbm::Villa::putobj ( Object  key,
Object  val,
int  dmode 
) throws VillaException [inline]

Store a record composed of serializable objects. The same as `put(qdbm.Util.serialize(key), qdbm.Util.serialize(val), dmode)'.

See also:
put(byte[], byte[], int)
If serialization is failed, an instance of `VillaException' is thrown.

Definition at line 265 of file Villa.java.

References put().

    byte[] kbuf = Util.serialize(key);
    byte[] vbuf = Util.serialize(val);
    if(kbuf == null || vbuf == null) throw new VillaException();
    put(kbuf, vbuf, dmode);

Generated by  Doxygen 1.6.0   Back to index