|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.skill.db.memorydatabase.MemoryDatabase
This Database implementation provides a simple non-persistent database
Inner Class Summary | |
class |
MemoryDatabase.DatabaseInfo
|
Constructor Summary | |
MemoryDatabase(java.lang.String name,
DatabaseProfile db_profile)
Default constructor |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemoryDatabase(java.lang.String name, DatabaseProfile db_profile)
Method Detail |
public void createDatabase()
createDatabase
in interface Database
public void openDatabase()
openDatabase
in interface Database
public void closeDatabase()
closeDatabase
in interface Database
public void deleteDatabase()
deleteDatabase
in interface Database
public void addObject(DatabaseObject obj) throws DatabaseException
addObject
in interface Database
obj
- The DatabaseObject to addpublic DatabaseObject findObject(java.lang.String unique_id) throws DatabaseException
findObject
in interface Database
unique_id
- The unique id of the DatabaseObject to findpublic void updateObject(DatabaseObject obj) throws DatabaseException
updateObject
in interface Database
obj
- The DatabaseObject to updatepublic void removeObject(DatabaseObject obj) throws DatabaseException
removeObject
in interface Database
obj
- The DatabaseObject to removepublic void removeObject(java.lang.String unique_id) throws DatabaseException
removeObject
in interface Database
unique_id
- The unique id of the DatabaseObject to removepublic void createRelation(java.lang.String relation)
createRelation
in interface Database
relation
- The name of the relation to createpublic void deleteRelation(java.lang.String relation)
deleteRelation
in interface Database
relation
- The name of the relation to deletepublic void startTransaction(boolean readonly)
startTransaction
in interface Database
fipaos.skill.db.Database
type
- If true, the transaction will be read-onlypublic void endTransaction()
endTransaction
in interface Database
public java.util.Enumeration getIDs() throws DatabaseException
getIDs
in interface Database
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |