public interface SchedulerDAO
Modifier and Type | Method and Description |
---|---|
void |
createTask(TaskDefinition taskDefinition)
Creates a new task.
|
void |
deleteTask(Integer taskId)
Delete task from database.
|
void |
deleteTask(TaskDefinition task)
Delete task from database.
|
Schedule |
getSchedule(Integer scheduleId)
Get schedule by internal identifier
|
TaskDefinition |
getTask(Integer taskId)
Get task by internal identifier
|
TaskDefinition |
getTaskByName(String name)
Get task by public name.
|
List<TaskDefinition> |
getTasks()
Find all tasks in the database
|
void |
updateTask(TaskDefinition task)
Update task
|
void createTask(TaskDefinition taskDefinition) throws DAOException
taskDefinition
- task to be createdDAOException
TaskDefinition getTask(Integer taskId) throws DAOException
taskId
- internal task identifierDAOException
void updateTask(TaskDefinition task) throws DAOException
task
- to be updatedDAOException
List<TaskDefinition> getTasks() throws DAOException
List
of all tasksDAOException
void deleteTask(TaskDefinition task) throws DAOException
task
- task to be deletedDAOException
void deleteTask(Integer taskId) throws DAOException
taskId
- identifier of task to be deletedDAOException
Schedule getSchedule(Integer scheduleId) throws DAOException
scheduleId
- internal schedule identifierDAOException
TaskDefinition getTaskByName(String name) throws DAOException
name
- public task nameDAOException
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.