|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.workjournal.Journal
Journal is a collection of JournalEntry objects.
It is persisted in a small database using HypersonicSQL.
JournalEntry| Constructor Summary | |
Journal(java.sql.Connection conn)
Construct a new Journal. |
|
| Method Summary | |
void |
add(JournalEntry entry)
Add the given journal entry. |
int |
count()
Get the number of journal entries. |
void |
delete(JournalEntry entry)
Delete the given journal entry. |
JournalEntry |
get(int row)
Get the journal entry at the given position. |
int |
indexOf(JournalEntry entry)
Get the index of the given journal entry. |
void |
load()
Load the entries from the database. |
long |
newId()
Generate a new journal entry ID. |
void |
sort()
Sort the journal entries using a JournalEntryComparator. |
void |
update(JournalEntry entry)
Update the given journal entry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Journal(java.sql.Connection conn)
| Method Detail |
public JournalEntry get(int row)
public int indexOf(JournalEntry entry)
public int count()
public void load()
throws java.sql.SQLException
public void add(JournalEntry entry)
throws java.sql.SQLException
public void update(JournalEntry entry)
throws java.sql.SQLException
public void delete(JournalEntry entry)
throws java.sql.SQLException
public void sort()
JournalEntryComparator.
public long newId()
throws java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||