|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectDBPorter
This class provides methods for retrieving and submitting data to and from the database-backed account server. This class can export data out of the database into the LocalAcctMgr-format accounts file, and it can import data into the database given the LocalAcctMgr-format accounts file. TODO: DO THIS FOR EVERY DRINK CLASS: ALL ERRORS SHOULD GO TO SYSTEM.ERR. TODO: Command line option to purge/not purge the database.
| Nested Class Summary | |
static class |
DBPorter.SysoutLogger
TODO: Make this its own class. |
| Field Summary | |
static int |
ACT_EXPORT
Indicates that the command line parser has found the action to be exporting. |
static int |
ACT_IMPORT
Indicates that the command line parser has found the action to be importing. |
static int |
ACT_NOTYET
Indicates that the command line parser has not yet found the action. |
| Constructor Summary | |
DBPorter()
|
|
| Method Summary | |
static void |
main(String[] args)
Reads in the command line arguments, processes them, creates the appopriate backend, and then starts the port process. |
static void |
showWarning()
Prints a warning and waits for a reply. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ACT_NOTYET
public static final int ACT_EXPORT
public static final int ACT_IMPORT
| Constructor Detail |
public DBPorter()
| Method Detail |
public static void main(String[] args)
args - The command-line arguements.public static void showWarning()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||