ch.busyboxes.agoo.dao.impl
Class WatcherTaskDAOImpl

java.lang.Object
  extended by ch.busyboxes.agoo.dao.impl.AbstractHibernateDAO
      extended by ch.busyboxes.agoo.dao.impl.WatcherTaskDAOImpl
All Implemented Interfaces:
WatcherTaskDAO

@Transactional
public class WatcherTaskDAOImpl
extends AbstractHibernateDAO
implements WatcherTaskDAO

Implementation of the watcher task DAO

Author:
julien@busyboxes.ch

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

WatcherTaskDAOImpl

public WatcherTaskDAOImpl()
Method Detail

fetchNextPendingTask

public WatcherTask fetchNextPendingTask()
Description copied from interface: WatcherTaskDAO
Returns the next pending task

Specified by:
fetchNextPendingTask in interface WatcherTaskDAO
Returns:
the next pending task
See Also:
WatcherTaskDAO.fetchNextPendingTask()

createNewTask

public void createNewTask(TaskType taskType,
                          java.lang.Long targetId)
Description copied from interface: WatcherTaskDAO
Creates a new task

Specified by:
createNewTask in interface WatcherTaskDAO
Parameters:
taskType - the new task's type
targetId - the new task's target ID, if any
See Also:
WatcherTaskDAO.createNewTask(TaskType, Long)

updateTask

public void updateTask(WatcherTask watcherTask)
Description copied from interface: WatcherTaskDAO
Updates the given task

Specified by:
updateTask in interface WatcherTaskDAO
Parameters:
watcherTask - the task
See Also:
WatcherTaskDAO.updateTask(WatcherTask)

removeTask

public void removeTask(WatcherTask watcherTask)
Description copied from interface: WatcherTaskDAO
Removes the following task

Specified by:
removeTask in interface WatcherTaskDAO
Parameters:
watcherTask - the task to be removed
See Also:
WatcherTaskDAO.removeTask(WatcherTask)


Copyright © 2009. All Rights Reserved.