|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg.model.db.jdbc.JdbcDB
net.sf.borg.model.db.jdbc.MemoJdbcDB
public class MemoJdbcDB
provides the JDBC layer for reading/writing Memos.
| Field Summary |
|---|
| Fields inherited from class net.sf.borg.model.db.jdbc.JdbcDB |
|---|
connection_ |
| Constructor Summary | |
|---|---|
MemoJdbcDB()
|
|
| Method Summary | |
|---|---|
void |
addMemo(Memo m)
Adds a memo to the database. |
void |
delete(String name)
Delete a memo by name. |
Collection<String> |
getNames()
Gets all memo names form the db |
Collection<Memo> |
readAll()
Read all memos from the db |
Memo |
readMemo(String name)
Read a memo by name |
void |
updateMemo(Memo m)
Update a memo in the db. |
| Methods inherited from class net.sf.borg.model.db.jdbc.JdbcDB |
|---|
beginTransaction, buildDbDir, close, commitTransaction, connect, execSQL, getConnection, getOption, getOptions, getUrl, rollbackTransaction, setOption, toInt, toInt, toStr, toVect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoJdbcDB()
| Method Detail |
|---|
public void addMemo(Memo m)
throws Exception
MemoDB
addMemo in interface MemoDBm - the Memo
Exception
public void delete(String name)
throws Exception
MemoDB
delete in interface MemoDBname - the name
Exception
public Collection<String> getNames()
throws Exception
MemoDB
getNames in interface MemoDBException
public Collection<Memo> readAll()
throws Exception
MemoDB
readAll in interface MemoDBException
public Memo readMemo(String name)
throws Exception
MemoDB
readMemo in interface MemoDBname - the name
Exception
public void updateMemo(Memo m)
throws Exception
MemoDB
updateMemo in interface MemoDBm - the memo
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||