|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.scheduler.db.hibernate.HibernateSchedulerDAO
public class HibernateSchedulerDAO
Constructor Summary | |
---|---|
HibernateSchedulerDAO()
Default Public constructor |
Method Summary | |
---|---|
void |
createTask(TaskDefinition task)
Creates a new task. |
void |
deleteTask(java.lang.Integer taskId)
Delete task from database. |
void |
deleteTask(TaskDefinition taskConfig)
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 |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory |
void |
updateTask(TaskDefinition task)
Update task |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateSchedulerDAO()
Method Detail |
---|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public void createTask(TaskDefinition task) throws DAOException
createTask
in interface SchedulerDAO
task
- to be created
DAOException
public TaskDefinition getTask(java.lang.Integer taskId) throws DAOException
getTask
in interface SchedulerDAO
taskId
- internal task identifier
DAOException
public TaskDefinition getTaskByName(java.lang.String name) throws DAOException
getTaskByName
in interface SchedulerDAO
name
- public task name
DAOException
public void updateTask(TaskDefinition task) throws DAOException
updateTask
in interface SchedulerDAO
task
- to be updated
DAOException
public java.util.List<TaskDefinition> getTasks() throws DAOException
getTasks
in interface SchedulerDAO
List
of all tasks
DAOException
public void deleteTask(java.lang.Integer taskId) throws DAOException
deleteTask
in interface SchedulerDAO
taskId
- Integer
identifier of task to be deleted
DAOException
public void deleteTask(TaskDefinition taskConfig) throws DAOException
deleteTask
in interface SchedulerDAO
taskConfig
- TaskDefinition
of task to be deleted
DAOException
public Schedule getSchedule(java.lang.Integer scheduleId) throws DAOException
getSchedule
in interface SchedulerDAO
scheduleId
- internal schedule identifier
DAOException
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |