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

void qdbm::Villa::curjump ( byte[]  key,
int  jmode 
) throws VillaException [inline]

Move the cursor to position around a record.

Parameters:
key a byte array of a key.
jmode detail adjustment: `Villa.JFORWARD', which means that the cursor is set to the first record of the same key and that the cursor is set to the next substitute if completely matching record does not exist, `Villa.JBACKWARD', which means that the cursor is set to the last record of the same key and that the cursor is set to the previous substitute if completely matching record does not exist.
Exceptions:
VillaException if an error occurs or there is no record corresponding the condition.

Definition at line 399 of file Villa.java.

References index.

Referenced by curjump(), and curjumpobj().

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


Generated by  Doxygen 1.6.0   Back to index