|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.calendar.FileCalendarDB
public class FileCalendarDB
| Constructor Summary | |
|---|---|
FileCalendarDB(File dbFile)
|
|
| Method Summary | |
|---|---|
void |
close()
does nothing |
boolean |
containsEntry(CalendarEntry entry)
entry is there if the id corresponds to an entry in the database; the contained data may be different |
boolean |
deleteEntry(CalendarEntry entry)
the corresponding entry in regards to the id will be deleted |
Collection<Alert> |
getActiveAlerts()
returns all active non-acknowledged alerts |
Collection<Alert> |
getAlerts(Filter<Alert> filter)
|
Collection<CalendarEntry> |
getEntries(Filter<CalendarEntry> filter)
|
void |
insertAlert(Alert alert)
|
CalendarEntry |
insertEntry(CalendarEntry entry)
the id of the given entry is ignored; the returned entry will reflect the actual database object |
void |
updateAlert(Alert alert)
|
void |
updateEntry(CalendarEntry entry)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileCalendarDB(File dbFile)
throws IOException,
ClassNotFoundException,
ClassCastException
IOException
ClassNotFoundException
ClassCastException| Method Detail |
|---|
public boolean containsEntry(CalendarEntry entry)
CalendarDB
containsEntry in interface CalendarDB
public boolean deleteEntry(CalendarEntry entry)
throws DatabaseException
CalendarDB
deleteEntry in interface CalendarDBDatabaseException
public void updateEntry(CalendarEntry entry)
throws CalendarException
updateEntry in interface CalendarDBCalendarException
public CalendarEntry insertEntry(CalendarEntry entry)
throws DatabaseException
CalendarDB
insertEntry in interface CalendarDBDatabaseException
public Collection<CalendarEntry> getEntries(Filter<CalendarEntry> filter)
throws DatabaseException
getEntries in interface CalendarDBDatabaseException
public Collection<Alert> getActiveAlerts()
throws DatabaseException
CalendarDB
getActiveAlerts in interface CalendarDBDatabaseException
public Collection<Alert> getAlerts(Filter<Alert> filter)
throws DatabaseException
getAlerts in interface CalendarDBDatabaseException
public void insertAlert(Alert alert)
throws DatabaseException,
CalendarException
insertAlert in interface CalendarDBDatabaseException
CalendarException
public void updateAlert(Alert alert)
throws DatabaseException,
CalendarException
updateAlert in interface CalendarDBDatabaseException
CalendarExceptionpublic void close()
close in interface CalendarDBclose in interface Closeable
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||