|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AppControllerInterface
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_FILENAME
The default filename to save database state to. |
Method Summary | |
---|---|
EventControllerInterface |
getEvent(int id)
Creates and returns an EventController to mediate access to the event with the given ID. |
int |
getEventCount()
Returns the number of events currently in this application's event database. |
boolean |
load()
Loads the application state from the default save filename. |
boolean |
loadFromFile(java.lang.String filename)
Loads the application state from the given filename. |
boolean |
save()
Saves the application state to the default save filename. |
boolean |
saveToFile(java.lang.String filename)
Saves the application state to the given filename. |
Field Detail |
---|
static final java.lang.String DEFAULT_FILENAME
Method Detail |
---|
int getEventCount()
EventControllerInterface getEvent(int id)
Precondition: id must be a valid event ID for the underlying database (as below).
id
- the ID of a given event; must be between 0 (inclusive) and getEventCount() (exclusive).
boolean save()
Note: It is optional to implement this method; if you choose not to, you can simply have it return false. If you do implement this method, you may want to use the DBPersistence class from the rsvp.util package.
boolean load()
Note: It is optional to implement this method; if you choose not to, you can simply have it return false. If you do implement this method, you may want to use the DBPersistence class from the rsvp.util package.
boolean saveToFile(java.lang.String filename)
Note: It is optional to implement this method; if you choose not to, you can simply have it return false. If you do implement this method, you may want to use the DBPersistence class from the rsvp.util package.
filename
- the file to save to
boolean loadFromFile(java.lang.String filename)
Note: It is optional to implement this method; if you choose not to, you can simply have it return false. If you do implement this method, you may want to use the DBPersistence class from the rsvp.util package.
filename
- the file to load from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |