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.
|
TaskDefinition |
getTask(Integer taskId)
Get task by internal identifier
|
TaskDefinition |
getTaskByName(String name)
Get task by public name.
|
TaskDefinition |
getTaskByUuid(String uuid) |
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(Integer taskId) throws DAOException
taskId - internal task identifierDAOExceptionTaskDefinition getTaskByUuid(String uuid) throws DAOException
DAOExceptionSchedulerService.getTaskByUuid(java.lang.String)void updateTask(TaskDefinition task) throws DAOException
task - to be updatedDAOExceptionList<TaskDefinition> getTasks() throws DAOException
List<TaskDefinition> of all tasksDAOExceptionvoid deleteTask(TaskDefinition task) throws DAOException
task - task to be deletedDAOExceptionvoid deleteTask(Integer taskId) throws DAOException
taskId - identifier of task to be deletedDAOExceptionTaskDefinition getTaskByName(String name) throws DAOException
name - public task nameDAOExceptionCopyright © 2024 OpenMRS Inc.. All rights reserved.