public class HibernateObsDAO extends java.lang.Object implements ObsDAO
ObsService
methods.ObsDAO
,
ObsService
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
protected org.hibernate.SessionFactory |
sessionFactory |
Constructor and Description |
---|
HibernateObsDAO() |
Modifier and Type | Method and Description |
---|---|
void |
deleteMimeType(MimeType mimeType)
Deprecated.
|
void |
deleteObs(Obs obs) |
java.util.List<MimeType> |
getAllMimeTypes(boolean includeRetired)
Deprecated.
|
MimeType |
getMimeType(java.lang.Integer mimeTypeId)
Deprecated.
|
Obs |
getObs(java.lang.Integer obsId) |
Obs |
getObsByUuid(java.lang.String uuid)
Auto generated method comment
|
java.lang.Long |
getObservationCount(java.util.List<Person> whom,
java.util.List<Encounter> encounters,
java.util.List<Concept> questions,
java.util.List<Concept> answers,
java.util.List<OpenmrsConstants.PERSON_TYPE> personTypes,
java.util.List<Location> locations,
java.lang.Integer obsGroupId,
java.util.Date fromDate,
java.util.Date toDate,
java.util.List<ConceptName> valueCodedNameAnswers,
boolean includeVoidedObs) |
java.util.List<Obs> |
getObservations(java.util.List<Person> whom,
java.util.List<Encounter> encounters,
java.util.List<Concept> questions,
java.util.List<Concept> answers,
java.util.List<OpenmrsConstants.PERSON_TYPE> personTypes,
java.util.List<Location> locations,
java.util.List<java.lang.String> sortList,
java.lang.Integer mostRecentN,
java.lang.Integer obsGroupId,
java.util.Date fromDate,
java.util.Date toDate,
boolean includeVoidedObs) |
MimeType |
saveMimeType(MimeType mimeType)
Deprecated.
|
Obs |
saveObs(Obs obs) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory that allows us to connect to the database that Hibernate knows about.
|
protected final org.apache.commons.logging.Log log
protected org.hibernate.SessionFactory sessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public void deleteObs(Obs obs) throws DAOException
deleteObs
in interface ObsDAO
DAOException
ObsService.deleteObs(org.openmrs.Obs)
public Obs getObs(java.lang.Integer obsId) throws DAOException
getObs
in interface ObsDAO
DAOException
ObsService.getObs(java.lang.Integer)
@Deprecated public MimeType getMimeType(java.lang.Integer mimeTypeId) throws DAOException
getMimeType
in interface ObsDAO
DAOException
ObsDAO.getMimeType(java.lang.Integer)
@Deprecated public java.util.List<MimeType> getAllMimeTypes(boolean includeRetired) throws DAOException
getAllMimeTypes
in interface ObsDAO
DAOException
ObsDAO.getAllMimeTypes(boolean)
@Deprecated public MimeType saveMimeType(MimeType mimeType) throws DAOException
saveMimeType
in interface ObsDAO
DAOException
ObsDAO.saveMimeType(org.openmrs.MimeType)
@Deprecated public void deleteMimeType(MimeType mimeType) throws DAOException
deleteMimeType
in interface ObsDAO
DAOException
ObsDAO.deleteMimeType(org.openmrs.MimeType)
public Obs saveObs(Obs obs) throws DAOException
saveObs
in interface ObsDAO
DAOException
ObsDAO.saveObs(org.openmrs.Obs)
public java.util.List<Obs> getObservations(java.util.List<Person> whom, java.util.List<Encounter> encounters, java.util.List<Concept> questions, java.util.List<Concept> answers, java.util.List<OpenmrsConstants.PERSON_TYPE> personTypes, java.util.List<Location> locations, java.util.List<java.lang.String> sortList, java.lang.Integer mostRecentN, java.lang.Integer obsGroupId, java.util.Date fromDate, java.util.Date toDate, boolean includeVoidedObs) throws DAOException
getObservations
in interface ObsDAO
DAOException
ObsDAO.getObservations(List, List, List, List, List, List, List,
Integer, Integer, Date, Date, boolean)
public java.lang.Long getObservationCount(java.util.List<Person> whom, java.util.List<Encounter> encounters, java.util.List<Concept> questions, java.util.List<Concept> answers, java.util.List<OpenmrsConstants.PERSON_TYPE> personTypes, java.util.List<Location> locations, java.lang.Integer obsGroupId, java.util.Date fromDate, java.util.Date toDate, java.util.List<ConceptName> valueCodedNameAnswers, boolean includeVoidedObs) throws DAOException
getObservationCount
in interface ObsDAO
DAOException
org.openmrs.api.db.ObsDAO#getObservationCount(java.util.List, java.util.List,
java.util.List, java.util.List, java.util.List, java.util.List, java.lang.Integer,
java.util.Date, java.util.Date, boolean)
public Obs getObsByUuid(java.lang.String uuid)
ObsDAO
getObsByUuid
in interface ObsDAO
ObsDAO.getObsByUuid(java.lang.String)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.