| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface that all database implementations should implement
to provide the ability to change the database used at runtime
Method Summary | |
void | addObject(DatabaseObject obj) Method to add the given DatabaseObject to the database, in the given relation. |
void | closeDatabase() Method to close the database store. |
void | createDatabase() Method to create the database store. |
void | createRelation(String relation) Creates the given relation within the Database |
void | deleteDatabase() Method to remove the database store. |
void | deleteRelation(String relation) Deletes the given relation from the Database |
void | endTransaction() Indicates that a transaction has finished. |
DatabaseObject | findObject(String unique_id) Method to locate the object in the given relation with the given UID |
Enumeration | getIDs() Method to return an enumeration of the keys in the database |
void | openDatabase() Method to re-open the database store. |
void | removeObject(DatabaseObject obj) Method to remove the given DatabaseObject from the Database |
void | removeObject(String unique_id) Method to remove the DatabaseObject from the Database with the given UID |
void | startTransaction(boolean readonly) Indicates that a transaction is about to start. |
void | updateObject(DatabaseObject obj) Method to update the given DatabaseObject in the Database |
Method Detail |
public void addObject(DatabaseObject obj)
throws DatabaseException
public void closeDatabase()
throws DatabaseException
public void createDatabase()
throws DatabaseException
public void createRelation(String relation)
throws DatabaseException
public void deleteDatabase()
throws DatabaseException
public void deleteRelation(String relation)
throws DatabaseException
public void endTransaction()
throws DatabaseException
public DatabaseObject findObject(String unique_id)
throws DatabaseException
public Enumeration getIDs()
throws DatabaseException
public void openDatabase()
throws DatabaseException
public void removeObject(DatabaseObject obj)
throws DatabaseException
public void removeObject(String unique_id)
throws DatabaseException
public void startTransaction(boolean readonly)
throws DatabaseException
public void updateObject(DatabaseObject obj)
throws DatabaseException
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |