public interface SchedulerDAO
Modifier and Type | Method and Description |
---|---|
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
|
void createTask(TaskDefinition taskDefinition) throws DAOException
taskDefinition
- task to be createdDAOException
TaskDefinition getTask(java.lang.Integer taskId) throws DAOException
taskId
- internal task identifierDAOException
void updateTask(TaskDefinition task) throws DAOException
task
- to be updatedDAOException
java.util.List<TaskDefinition> getTasks() throws DAOException
List
of all tasksDAOException
void deleteTask(TaskDefinition task) throws DAOException
task
- task to be deletedDAOException
void deleteTask(java.lang.Integer taskId) throws DAOException
taskId
- identifier of task to be deletedDAOException
Schedule getSchedule(java.lang.Integer scheduleId) throws DAOException
scheduleId
- internal schedule identifierDAOException
TaskDefinition getTaskByName(java.lang.String name) throws DAOException
name
- public task nameDAOException
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.