public class HibernateActiveListDAO extends Object implements ActiveListDAO
Context
,
ActiveListDAO
,
ActiveListService
Constructor and Description |
---|
HibernateActiveListDAO() |
Modifier and Type | Method and Description |
---|---|
void |
deleteActiveListItem(ActiveListItem item) |
<T extends ActiveListItem> |
getActiveListItem(Class<T> clazz,
Integer activeListItemId) |
ActiveListItem |
getActiveListItemByUuid(String uuid) |
<T extends ActiveListItem> |
getActiveListItems(Class<T> clazz,
Person p,
ActiveListType type) |
List<ActiveListItem> |
getActiveListItems(Person p,
ActiveListType type) |
ActiveListItem |
saveActiveListItem(ActiveListItem item) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory
|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public List<ActiveListItem> getActiveListItems(Person p, ActiveListType type) throws DAOException
getActiveListItems
in interface ActiveListDAO
DAOException
ActiveListDAO.getActiveListItems(org.openmrs.Person,
org.openmrs.activelist.ActiveListType)
public <T extends ActiveListItem> List<T> getActiveListItems(Class<T> clazz, Person p, ActiveListType type) throws DAOException
getActiveListItems
in interface ActiveListDAO
DAOException
ActiveListDAO.getActiveListItems(java.lang.Class, org.openmrs.Person,
org.openmrs.activelist.ActiveListType)
public <T extends ActiveListItem> T getActiveListItem(Class<T> clazz, Integer activeListItemId) throws DAOException
getActiveListItem
in interface ActiveListDAO
DAOException
ActiveListDAO.getActiveListItem(java.lang.Class, java.lang.Integer)
public ActiveListItem getActiveListItemByUuid(String uuid) throws DAOException
getActiveListItemByUuid
in interface ActiveListDAO
DAOException
ActiveListDAO.getActiveListItemByUuid(java.lang.String)
public ActiveListItem saveActiveListItem(ActiveListItem item) throws DAOException
saveActiveListItem
in interface ActiveListDAO
DAOException
ActiveListDAO.saveActiveListItem(org.openmrs.activelist.ActiveListItem)
public void deleteActiveListItem(ActiveListItem item) throws DAOException
deleteActiveListItem
in interface ActiveListDAO
DAOException
ActiveListDAO.deleteActiveListItem(org.openmrs.activelist.ActiveListItem)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.