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 createdDAOException
TaskDefinition getTask(Integer taskId) throws DAOException
taskId
- internal task identifierDAOException
TaskDefinition getTaskByUuid(String uuid) throws DAOException
DAOException
SchedulerService.getTaskByUuid(java.lang.String)
void updateTask(TaskDefinition task) throws DAOException
task
- to be updatedDAOException
List<TaskDefinition> getTasks() throws DAOException
List<TaskDefinition>
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
TaskDefinition getTaskByName(String name) throws DAOException
name
- public task nameDAOException
Copyright © 2024 OpenMRS Inc.. All rights reserved.