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

void qdbm::Villa::out ( byte[]  key  )  throws VillaException [inline]

Delete a record.

Parameters:
key a byte array of a key.
Exceptions:
VillaException if an error occurs or no record corresponds.
Note:
When the key of duplicated records is specified, the first record of the same key is deleted. The cursor becomes unavailable due to updating database.

Definition at line 278 of file Villa.java.

References index.

Referenced by delete(), deleterec(), and outobj().

                                                    {
    if(index < 0) throw new VillaException();
    synchronized(ADBM.class){
      if(vlout(index, key, key.length) == 0) throw new VillaException(vlecode());
    }
  }


Generated by  Doxygen 1.6.0   Back to index