|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.jadv.server.manager.HSQLDBDatabaseManager
This class handles all needed accesses for the ObjectManager UNTESTED! I haven't used this Class for quite some time now! (But it should work fine ...)
Field Summary | |
private java.sql.Connection |
_db_conn
|
Constructor Summary | |
HSQLDBDatabaseManager()
Constructor |
Method Summary | |
private void |
createTables()
createTables Create the needed Tables! |
void |
deleteObject(java.lang.String id)
deleteObject(id) Delete an Object from the Database |
SavedObject |
getObject(java.lang.String id)
getObject(id) Returns the Object, that is stored inside the database or null if there isn't any object available. |
private void |
query(java.lang.String expression)
query(Expression) Does a query on the database. |
void |
saveObject(SavedObject obj)
saveObject(obj) Save an SavedObject inside the database. |
void |
shutdown()
shutdown() Closes the database and the ObjectManager will no longer do anything else! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.sql.Connection _db_conn
Constructor Detail |
public HSQLDBDatabaseManager()
Method Detail |
private void createTables()
public void deleteObject(java.lang.String id)
deleteObject
in interface DatabaseManager
id
- public SavedObject getObject(java.lang.String id)
getObject
in interface DatabaseManager
id
-
private void query(java.lang.String expression) throws java.sql.SQLException
expression
-
java.sql.SQLException
public void saveObject(SavedObject obj)
saveObject
in interface DatabaseManager
obj
- public void shutdown()
shutdown
in interface DatabaseManager
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |