|
|||||||||
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(java.lang.String relation)
Creates the given relation within the Database |
void |
deleteDatabase()
Method to remove the database store. |
void |
deleteRelation(java.lang.String relation)
Deletes the given relation from the Database |
void |
endTransaction()
Indicates that a transaction has finished. |
DatabaseObject |
findObject(java.lang.String unique_id)
Method to locate the object in the given relation with the given UID |
java.util.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(java.lang.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 createDatabase() throws DatabaseException
public void openDatabase() throws DatabaseException
public void closeDatabase() throws DatabaseException
public void deleteDatabase() throws DatabaseException
public void addObject(DatabaseObject obj) throws DatabaseException
obj
- The DatabaseObject to addpublic DatabaseObject findObject(java.lang.String unique_id) throws DatabaseException
unique_id
- The unique id of the DatabaseObject to findpublic void updateObject(DatabaseObject obj) throws DatabaseException
obj
- The DatabaseObject to updatepublic void removeObject(DatabaseObject obj) throws DatabaseException
obj
- The DatabaseObject to removepublic void removeObject(java.lang.String unique_id) throws DatabaseException
unique_id
- The unique id of the DatabaseObject to removepublic void createRelation(java.lang.String relation) throws DatabaseException
relation
- The name of the relation to createpublic void deleteRelation(java.lang.String relation) throws DatabaseException
relation
- The name of the relation to deletepublic void startTransaction(boolean readonly) throws DatabaseException
type
- If true, the transaction will be read-onlypublic void endTransaction() throws DatabaseException
public java.util.Enumeration getIDs() throws DatabaseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |