|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Abstraction for database managers compatible with DBM.
| Method Summary | |
void |
close()
Close the database connection. |
void |
delete(byte[] key)
Delete a record. |
boolean |
error()
Check whether a fatal error occured or not. |
byte[] |
fetch(byte[] key)
Fetch a record. |
byte[] |
firstkey()
Get the first key. |
byte[] |
nextkey()
Get the next key. |
void |
store(byte[] key,
byte[] val,
boolean replace)
Store a record. |
| Method Detail |
public void close()
throws DBMException
DBMException - if an error occurs.
public void delete(byte[] key)
throws DBMException
key - a byte array of a key.
DBMException - if an error occurs or no record corresponds.
public boolean error()
throws DBMException
DBMException - if an error occurs.
public byte[] fetch(byte[] key)
throws DBMException
key - a byte array of a key.
DBMException - if an error occurs or no record corresponds.
public byte[] firstkey()
throws DBMException
DBMException - if an error occurs or no record corresponds.
public byte[] nextkey()
throws DBMException
DBMException - if an error occurs or no record corresponds.
public void store(byte[] key,
byte[] val,
boolean replace)
throws DBMException
key - a byte array of a key.val - a byte array of a value.replace - whether the existing value is to be overwritten or not.
DBMException - if an error occurs or replace is cancelled.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||