org.openmrs.notification.db.hibernate
Class HibernateAlertDAO

java.lang.Object
  extended by org.openmrs.notification.db.hibernate.HibernateAlertDAO
All Implemented Interfaces:
AlertDAO

public class HibernateAlertDAO
extends java.lang.Object
implements AlertDAO

Hibernate specific implementation of the


Constructor Summary
HibernateAlertDAO()
           
 
Method Summary
 void deleteAlert(Alert alert)
           
 Alert getAlert(java.lang.Integer alertId)
           
 java.util.List<Alert> getAlerts(User user, boolean includeRead, boolean includeExpired)
           
 java.util.List<Alert> getAllAlerts(boolean includeExpired)
           
 Alert saveAlert(Alert alert)
           
 void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
          Set session factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateAlertDAO

public HibernateAlertDAO()
Method Detail

setSessionFactory

public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory

Parameters:
sessionFactory -

saveAlert

public Alert saveAlert(Alert alert)
                throws DAOException
Specified by:
saveAlert in interface AlertDAO
Throws:
DAOException
See Also:
AlertDAO.saveAlert(org.openmrs.notification.Alert)

getAlert

public Alert getAlert(java.lang.Integer alertId)
               throws DAOException
Specified by:
getAlert in interface AlertDAO
Throws:
DAOException
See Also:
AlertDAO.getAlert(java.lang.Integer)

deleteAlert

public void deleteAlert(Alert alert)
                 throws DAOException
Specified by:
deleteAlert in interface AlertDAO
Throws:
DAOException
See Also:
AlertDAO.deleteAlert(org.openmrs.notification.Alert)

getAllAlerts

public java.util.List<Alert> getAllAlerts(boolean includeExpired)
                                   throws DAOException
Specified by:
getAllAlerts in interface AlertDAO
Throws:
DAOException
See Also:
AlertService.getAllAlerts(boolean)

getAlerts

public java.util.List<Alert> getAlerts(User user,
                                       boolean includeRead,
                                       boolean includeExpired)
                                throws DAOException
Specified by:
getAlerts in interface AlertDAO
Throws:
DAOException
See Also:
AlertDAO.getAlerts(org.openmrs.User, boolean, boolean)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change