Constructor and Description |
---|
HibernateAlertDAO() |
Modifier and Type | Method and Description |
---|---|
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
|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public Alert saveAlert(Alert alert) throws DAOException
saveAlert
in interface AlertDAO
DAOException
AlertDAO.saveAlert(org.openmrs.notification.Alert)
public Alert getAlert(java.lang.Integer alertId) throws DAOException
getAlert
in interface AlertDAO
DAOException
AlertDAO.getAlert(java.lang.Integer)
public void deleteAlert(Alert alert) throws DAOException
deleteAlert
in interface AlertDAO
DAOException
AlertDAO.deleteAlert(org.openmrs.notification.Alert)
public java.util.List<Alert> getAllAlerts(boolean includeExpired) throws DAOException
getAllAlerts
in interface AlertDAO
DAOException
AlertService.getAllAlerts(boolean)
public java.util.List<Alert> getAlerts(User user, boolean includeRead, boolean includeExpired) throws DAOException
getAlerts
in interface AlertDAO
DAOException
AlertDAO.getAlerts(org.openmrs.User, boolean, boolean)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.