|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object qdbm.VillaCursor
public class VillaCursor
The Java API of cursor functions of Villa This class depends on the native library `jqdbm'.
Method Summary | |
---|---|
protected void |
finalize()
Release resources. |
boolean |
first()
Move the multiple cursor to the first record. |
boolean |
jump(byte[] key)
Move the multiple cursor to a position around a record for stepping forward. |
boolean |
jump(byte[] key,
int jmode)
Move the multiple cursor to a position around a record. |
boolean |
jumpobj(java.lang.Object key,
int jmode)
Move the multiple cursor to a position around a record composed of serializable objects. |
byte[] |
key()
Get the key of the record where the multiple cursor is. |
java.lang.Object |
keyobj()
Get the key of the record composed of serializable objects, where the multiple cursor is. |
boolean |
last()
Move the multiple cursor to the last record. |
boolean |
next()
Move the multiple cursor to the next record. |
boolean |
prev()
Move the multiple cursor to the next record. |
byte[] |
val()
Get the value of the record where the multiple cursor is. |
java.lang.Object |
valobj()
Get the value of the record where the multiple cursor is. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected void finalize()
finalize
in class java.lang.Object
public boolean first() throws VillaException
VillaException
- if an error occurs or there is no record in the database.public boolean jump(byte[] key) throws VillaException
VillaException
jump(byte[], int)
public boolean jump(byte[] key, int jmode) throws VillaException
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.
VillaException
- if an error occurs or there is no record corresponding the condition.public boolean jumpobj(java.lang.Object key, int jmode) throws VillaException
VillaException
jump(byte[], int)
public byte[] key() throws VillaException
VillaException
- if an error occurs or no record corresponds to the cursor.public java.lang.Object keyobj() throws VillaException
VillaException
key()
public boolean last() throws VillaException
VillaException
- if an error occurs or there is no record in the database.public boolean next() throws VillaException
VillaException
- if an error occurs or there is no next record.public boolean prev() throws VillaException
VillaException
- if an error occurs or there is no previous record.public byte[] val() throws VillaException
VillaException
- if an error occurs or no record corresponds to the cursor.public java.lang.Object valobj() throws VillaException
VillaException
val()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |