|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.busyboxes.agoo.dao.impl.AbstractHibernateDAO ch.busyboxes.agoo.dao.impl.WatcherTaskDAOImpl
@Transactional public class WatcherTaskDAOImpl
Implementation of the watcher task DAO
Field Summary |
---|
Fields inherited from class ch.busyboxes.agoo.dao.impl.AbstractHibernateDAO |
---|
hibernateTemplate |
Constructor Summary | |
---|---|
WatcherTaskDAOImpl()
|
Method Summary | |
---|---|
void |
createNewTask(TaskType taskType,
java.lang.Long targetId)
Creates a new task |
WatcherTask |
fetchNextPendingTask()
Returns the next pending task |
void |
removeTask(WatcherTask watcherTask)
Removes the following task |
void |
updateTask(WatcherTask watcherTask)
Updates the given task |
Methods inherited from class ch.busyboxes.agoo.dao.impl.AbstractHibernateDAO |
---|
setSessionFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WatcherTaskDAOImpl()
Method Detail |
---|
public WatcherTask fetchNextPendingTask()
WatcherTaskDAO
fetchNextPendingTask
in interface WatcherTaskDAO
WatcherTaskDAO.fetchNextPendingTask()
public void createNewTask(TaskType taskType, java.lang.Long targetId)
WatcherTaskDAO
createNewTask
in interface WatcherTaskDAO
taskType
- the new task's typetargetId
- the new task's target ID, if anyWatcherTaskDAO.createNewTask(TaskType, Long)
public void updateTask(WatcherTask watcherTask)
WatcherTaskDAO
updateTask
in interface WatcherTaskDAO
watcherTask
- the taskWatcherTaskDAO.updateTask(WatcherTask)
public void removeTask(WatcherTask watcherTask)
WatcherTaskDAO
removeTask
in interface WatcherTaskDAO
watcherTask
- the task to be removedWatcherTaskDAO.removeTask(WatcherTask)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |