|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sf.imageCave.database.DatabaseManager
A simple class that provides an interface for the Database.
It creates a thread to initialize the database, periodically write out to
the database, and finally shut down the database upon application exit.
Database| Constructor Summary | |
DatabaseManager()
|
|
DatabaseManager(CfgFile[] cfgs)
Constructor |
|
| Method Summary | |
void |
start()
|
void |
stop()
|
boolean |
writeOut(DataTable dt,
CfgFile cFile)
Writes to a CfgFile all the information in the corresponding table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatabaseManager(CfgFile[] cfgs)
public DatabaseManager()
| Method Detail |
public void start()
public void stop()
public boolean writeOut(DataTable dt,
CfgFile cFile)
Writes to a CfgFile all the information in the corresponding table.
table := (row)* EOF;
row := '[entry]' (statement) * '[/entry]'
statement := identifier '=' literal ';'
If you don't understand what this means just look in "data/users.cfg" for an example.
cFile -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||