org.openmrs.notification.db.hibernate
Class HibernateAlertDAO
java.lang.Object
org.openmrs.notification.db.hibernate.HibernateAlertDAO
- All Implemented Interfaces:
- AlertDAO
public class HibernateAlertDAO
- extends java.lang.Object
- implements AlertDAO
Hibernate specific implementation of the
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateAlertDAO
public HibernateAlertDAO()
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)
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change