| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface ADBM
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 | 
|---|
void close()
           throws DBMException
DBMException - if an error occurs.
void delete(byte[] key)
            throws DBMException
key - a byte array of a key.
DBMException - if an error occurs or no record corresponds.
boolean error()
              throws DBMException
DBMException - if an error occurs.
byte[] fetch(byte[] key)
             throws DBMException
key - a byte array of a key.
DBMException - if an error occurs or no record corresponds.
byte[] firstkey()
                throws DBMException
DBMException - if an error occurs or no record corresponds.
byte[] nextkey()
               throws DBMException
DBMException - if an error occurs or no record corresponds.
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 | ||||||