|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskDB
The Interface for a Task database.
Method Summary | |
---|---|
void |
addLog(int taskid,
String desc)
Adds a task log for a task. |
void |
addProject(Project p)
Adds a project to the db. |
void |
addSubTask(Subtask s)
Adds a sub task. |
void |
deleteProject(int id)
Delete a project by id |
void |
deleteSubTask(int id)
Delete a sub task by id. |
Collection<Tasklog> |
getLogs()
Gets all task logs in the db. |
Collection<Tasklog> |
getLogs(int taskid)
Gets all task logs for a given task. |
Project |
getProject(int projectid)
Gets a project by id. |
Collection<Project> |
getProjects()
Gets all projects in the database. |
Collection<Project> |
getSubProjects(int projid)
Gets all sub projects (child projects) for a given project. |
Subtask |
getSubTask(int id)
Gets a sub task by subtask id. |
Collection<Subtask> |
getSubTasks()
Gets all sub tasks in the database. |
Collection<Subtask> |
getSubTasks(int taskid)
Gets all sub tasks for a given task. |
Collection<Task> |
getTasks(int projectid)
Gets all tasks for a given project. |
int |
nextProjectKey()
get the Next available project key. |
int |
nextSubTaskKey()
get the Next available sub task key. |
void |
saveLog(Tasklog tlog)
Save a task log in the db. |
void |
updateProject(Project p)
Updates a project in the db. |
void |
updateSubTask(Subtask s)
Update a sub task. |
Methods inherited from interface net.sf.borg.model.db.EntityDB |
---|
addObj, delete, newObj, nextkey, readAll, readObj, sync, updateObj |
Method Detail |
---|
Collection<Subtask> getSubTasks(int taskid) throws Exception
taskid
- the taskid
Exception
- the exceptionCollection<Subtask> getSubTasks() throws Exception
Exception
- the exceptionSubtask getSubTask(int id) throws Exception
id
- the id
Exception
- the exceptionvoid deleteSubTask(int id) throws Exception
id
- the id
Exception
- the exceptionvoid addSubTask(Subtask s) throws Exception
s
- the subtask
Exception
- the exceptionvoid updateSubTask(Subtask s) throws Exception
s
- the subtask
Exception
- the exceptionint nextSubTaskKey() throws Exception
Exception
- the exceptionCollection<Tasklog> getLogs(int taskid) throws Exception
taskid
- the task id
Exception
- the exceptionCollection<Tasklog> getLogs() throws Exception
Exception
- the exceptionvoid addLog(int taskid, String desc) throws Exception
taskid
- the task iddesc
- the log text
Exception
- the exceptionvoid saveLog(Tasklog tlog) throws Exception
tlog
- the task log object
Exception
- the exceptionCollection<Project> getProjects() throws Exception
Exception
- the exceptionCollection<Task> getTasks(int projectid) throws Exception
projectid
- the project id
Exception
- the exceptionProject getProject(int projectid) throws Exception
projectid
- the project id
Exception
- the exceptionvoid deleteProject(int id) throws Exception
id
- the project id
Exception
- the exceptionvoid addProject(Project p) throws Exception
p
- the project
Exception
- the exceptionvoid updateProject(Project p) throws Exception
p
- the project
Exception
- the exceptionint nextProjectKey() throws Exception
Exception
- the exceptionCollection<Project> getSubProjects(int projid) throws Exception
projid
- the project id
Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |