|
||||||||||
| 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 exception
Collection<Subtask> getSubTasks()
throws Exception
Exception - the exception
Subtask getSubTask(int id)
throws Exception
id - the id
Exception - the exception
void deleteSubTask(int id)
throws Exception
id - the id
Exception - the exception
void addSubTask(Subtask s)
throws Exception
s - the subtask
Exception - the exception
void updateSubTask(Subtask s)
throws Exception
s - the subtask
Exception - the exception
int nextSubTaskKey()
throws Exception
Exception - the exception
Collection<Tasklog> getLogs(int taskid)
throws Exception
taskid - the task id
Exception - the exception
Collection<Tasklog> getLogs()
throws Exception
Exception - the exception
void addLog(int taskid,
String desc)
throws Exception
taskid - the task iddesc - the log text
Exception - the exception
void saveLog(Tasklog tlog)
throws Exception
tlog - the task log object
Exception - the exception
Collection<Project> getProjects()
throws Exception
Exception - the exception
Collection<Task> getTasks(int projectid)
throws Exception
projectid - the project id
Exception - the exception
Project getProject(int projectid)
throws Exception
projectid - the project id
Exception - the exception
void deleteProject(int id)
throws Exception
id - the project id
Exception - the exception
void addProject(Project p)
throws Exception
p - the project
Exception - the exception
void updateProject(Project p)
throws Exception
p - the project
Exception - the exception
int nextProjectKey()
throws Exception
Exception - the exception
Collection<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 | |||||||||