org.openmrs.api.db.hibernate
Class HibernateActiveListDAO
java.lang.Object
org.openmrs.api.db.hibernate.HibernateActiveListDAO
- All Implemented Interfaces:
- ActiveListDAO
public class HibernateActiveListDAO
- extends java.lang.Object
- implements ActiveListDAO
Hibernate specific database methods for the ActiveListService
- See Also:
Context
,
ActiveListDAO
,
ActiveListService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateActiveListDAO
public HibernateActiveListDAO()
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
- Set session factory
- Parameters:
sessionFactory
-
getActiveListItems
public java.util.List<ActiveListItem> getActiveListItems(Person p,
ActiveListType type)
throws DAOException
- Specified by:
getActiveListItems
in interface ActiveListDAO
- Throws:
DAOException
- See Also:
ActiveListDAO.getActiveListItems(org.openmrs.Person,
org.openmrs.activelist.ActiveListType)
getActiveListItems
public <T extends ActiveListItem> java.util.List<T> getActiveListItems(java.lang.Class<T> clazz,
Person p,
ActiveListType type)
throws DAOException
- Specified by:
getActiveListItems
in interface ActiveListDAO
- Throws:
DAOException
- See Also:
ActiveListDAO.getActiveListItems(java.lang.Class, org.openmrs.Person,
org.openmrs.activelist.ActiveListType)
getActiveListItem
public <T extends ActiveListItem> T getActiveListItem(java.lang.Class<T> clazz,
java.lang.Integer activeListItemId)
throws DAOException
- Specified by:
getActiveListItem
in interface ActiveListDAO
- Throws:
DAOException
- See Also:
ActiveListDAO.getActiveListItem(java.lang.Class, java.lang.Integer)
getActiveListItemByUuid
public ActiveListItem getActiveListItemByUuid(java.lang.String uuid)
throws DAOException
- Specified by:
getActiveListItemByUuid
in interface ActiveListDAO
- Throws:
DAOException
- See Also:
ActiveListDAO.getActiveListItemByUuid(java.lang.String)
saveActiveListItem
public ActiveListItem saveActiveListItem(ActiveListItem item)
throws DAOException
- Specified by:
saveActiveListItem
in interface ActiveListDAO
- Throws:
DAOException
- See Also:
ActiveListDAO.saveActiveListItem(org.openmrs.activelist.ActiveListItem)
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change