public class HibernateSchedulerDAO extends Object implements SchedulerDAO
| Constructor and Description |
|---|
HibernateSchedulerDAO()
Default Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
createTask(TaskDefinition task)
Creates a new task.
|
void |
deleteTask(Integer taskId)
Delete task from database.
|
void |
deleteTask(TaskDefinition taskConfig)
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 |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory
|
void |
updateTask(TaskDefinition task)
Update task
|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - public void createTask(TaskDefinition task) throws DAOException
createTask in interface SchedulerDAOtask - to be createdDAOExceptionpublic TaskDefinition getTask(Integer taskId) throws DAOException
getTask in interface SchedulerDAOtaskId - internal task identifierDAOExceptionpublic TaskDefinition getTaskByName(String name) throws DAOException
getTaskByName in interface SchedulerDAOname - public task nameDAOExceptionpublic void updateTask(TaskDefinition task) throws DAOException
updateTask in interface SchedulerDAOtask - to be updatedDAOExceptionpublic List<TaskDefinition> getTasks() throws DAOException
getTasks in interface SchedulerDAOList<TaskDefinition> of all tasksDAOExceptionpublic void deleteTask(Integer taskId) throws DAOException
deleteTask in interface SchedulerDAOtaskId - Integer identifier of task to be deletedDAOExceptionpublic void deleteTask(TaskDefinition taskConfig) throws DAOException
deleteTask in interface SchedulerDAOtaskConfig - TaskDefinition of task to be deletedDAOExceptionpublic TaskDefinition getTaskByUuid(String uuid) throws DAOException
getTaskByUuid in interface SchedulerDAODAOExceptionSchedulerDAO.getTaskByUuid(java.lang.String)Copyright © 2024 OpenMRS Inc.. All rights reserved.