public class HibernateActiveListDAO extends java.lang.Object implements ActiveListDAO
Context
,
ActiveListDAO
,
ActiveListService
Constructor and Description |
---|
HibernateActiveListDAO() |
Modifier and Type | Method and Description |
---|---|
void |
deleteActiveListItem(ActiveListItem item) |
<T extends ActiveListItem> |
getActiveListItem(java.lang.Class<T> clazz,
java.lang.Integer activeListItemId) |
ActiveListItem |
getActiveListItemByUuid(java.lang.String uuid) |
<T extends ActiveListItem> |
getActiveListItems(java.lang.Class<T> clazz,
Person p,
ActiveListType type) |
java.util.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 java.util.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> java.util.List<T> getActiveListItems(java.lang.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(java.lang.Class<T> clazz, java.lang.Integer activeListItemId) throws DAOException
getActiveListItem
in interface ActiveListDAO
DAOException
ActiveListDAO.getActiveListItem(java.lang.Class, java.lang.Integer)
public ActiveListItem getActiveListItemByUuid(java.lang.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 Inc.. All Rights Reserved.