|
||||||||
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 |
clearerror()
Clear the error condition on the database. |
void |
close()
Close the database connection. |
void |
delete(byte[] key)
Delete a record. |
void |
deletenum(long key)
Delete a record. |
void |
deleteobj(java.lang.Object key)
Delete a record. |
boolean |
error()
Check whether an fatal error occured or not. |
byte[] |
fetch(byte[] key)
Fetch a record. |
java.lang.Object |
fetchnum(long key)
Fetch a record. |
java.lang.Object |
fetchobj(java.lang.Object key)
Fetch a record. |
byte[] |
firstkey()
Get the first key. |
long |
firstkeynum()
Get the first key. |
java.lang.Object |
firstkeyobj()
Get the first key. |
byte[] |
nextkey()
Get the next key. |
long |
nextkeynum()
Get the next key. |
java.lang.Object |
nextkeyobj()
Get the next key. |
void |
store(byte[] key,
byte[] val,
boolean replace)
Store a record. |
void |
storenum(long key,
java.lang.Object val,
boolean replace)
Store a record. |
void |
storeobj(java.lang.Object key,
java.lang.Object val,
boolean replace)
Store a record. |
Method Detail |
public void clearerror() throws DBMException
DBMException
- if an error occures.public void close() throws DBMException
DBMException
- if an error occures.public void delete(byte[] key) throws DBMException
key
- a byte array of a key.
DBMException
- if an error occures or no record corresponds.public void deletenum(long key) throws DBMException
key
- the number of a key.
DBMException
- if an error occures or no record corresponds.public void deleteobj(java.lang.Object key) throws DBMException
key
- a serializable object of a key.
DBMException
- if an error occures or no record corresponds.public boolean error() throws DBMException
DBMException
- if an error occures.public byte[] fetch(byte[] key) throws DBMException
key
- a byte array of a key.
DBMException
- if an error occures or no record corresponds.public java.lang.Object fetchnum(long key) throws DBMException
key
- the number of a key.
DBMException
- if an error occures or no record corresponds.public java.lang.Object fetchobj(java.lang.Object key) throws DBMException
key
- a serializable object of a key.
DBMException
- if an error occures or no record corresponds.public byte[] firstkey() throws DBMException
DBMException
- if an error occures or no record corresponds.public long firstkeynum() throws DBMException
DBMException
- if an error occures or no record corresponds.public java.lang.Object firstkeyobj() throws DBMException
DBMException
- if an error occures or no record corresponds.public byte[] nextkey() throws DBMException
DBMException
- if an error occures or no record corresponds.public long nextkeynum() throws DBMException
DBMException
- if an error occures or no record corresponds.public java.lang.Object nextkeyobj() throws DBMException
DBMException
- if an error occures 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 occures or replace is cancelled.public void storenum(long key, java.lang.Object val, boolean replace) throws DBMException
key
- the number of a key.val
- a serializable object of a value.replace
- whether the existing value is to be overwritten or not.
DBMException
- if an error occures or replace is cancelled.public void storeobj(java.lang.Object key, java.lang.Object val, boolean replace) throws DBMException
key
- a serializable object of a key.val
- a serializable object of a value.replace
- whether the existing value is to be overwritten or not.
DBMException
- if an error occures or replace is cancelled.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |