Constructor and Description |
---|
HibernateAlertDAO() |
Modifier and Type | Method and Description |
---|---|
void |
deleteAlert(Alert alert) |
Alert |
getAlert(Integer alertId) |
List<Alert> |
getAlerts(User user,
boolean includeRead,
boolean includeExpired) |
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(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 List<Alert> getAllAlerts(boolean includeExpired) throws DAOException
getAllAlerts
in interface AlertDAO
DAOException
AlertService.getAllAlerts(boolean)
public List<Alert> getAlerts(User user, boolean includeRead, boolean includeExpired) throws DAOException
getAlerts
in interface AlertDAO
DAOException
AlertDAO.getAlerts(org.openmrs.User, boolean, boolean)
Copyright © 2024 OpenMRS Inc.. All rights reserved.