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 createdDAOExceptionTaskDefinition getTask(java.lang.Integer taskId) throws DAOException
taskId - internal task identifierDAOExceptionvoid updateTask(TaskDefinition task) throws DAOException
task - to be updatedDAOExceptionjava.util.List<TaskDefinition> getTasks() throws DAOException
List of all tasksDAOExceptionvoid deleteTask(TaskDefinition task) throws DAOException
task - task to be deletedDAOExceptionvoid deleteTask(java.lang.Integer taskId)
throws DAOException
taskId - identifier of task to be deletedDAOExceptionSchedule getSchedule(java.lang.Integer scheduleId) throws DAOException
scheduleId - internal schedule identifierDAOExceptionTaskDefinition getTaskByName(java.lang.String name) throws DAOException
name - public task nameDAOExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.