|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchedulerDAO
Scheduler-related database methods.
Method Summary | |
---|---|
void |
createTask(TaskDefinition taskDefinition)
Creates a new task. |
void |
deleteTask(java.lang.Integer taskId)
Delete task from database. |
void |
deleteTask(TaskDefinition task)
Delete task from database. |
Schedule |
getSchedule(java.lang.Integer scheduleId)
Get schedule by internal identifier |
TaskDefinition |
getTask(java.lang.Integer taskId)
Get task by internal identifier |
TaskDefinition |
getTaskByName(java.lang.String name)
Get task by public name. |
java.util.List<TaskDefinition> |
getTasks()
Find all tasks in the database |
void |
updateTask(TaskDefinition task)
Update task |
Method Detail |
---|
void createTask(TaskDefinition taskDefinition) throws DAOException
taskDefinition
- task to be created
DAOException
TaskDefinition getTask(java.lang.Integer taskId) throws DAOException
taskId
- internal task identifier
DAOException
void updateTask(TaskDefinition task) throws DAOException
task
- to be updated
DAOException
java.util.List<TaskDefinition> getTasks() throws DAOException
List
of all tasks
DAOException
void deleteTask(TaskDefinition task) throws DAOException
task
- task to be deleted
DAOException
void deleteTask(java.lang.Integer taskId) throws DAOException
taskId
- identifier of task to be deleted
DAOException
Schedule getSchedule(java.lang.Integer scheduleId) throws DAOException
scheduleId
- internal schedule identifier
DAOException
TaskDefinition getTaskByName(java.lang.String name) throws DAOException
name
- public task name
DAOException
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |