public class HibernateObsDAO extends 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) |
List<MimeType> |
getAllMimeTypes(boolean includeRetired)
Deprecated.
|
MimeType |
getMimeType(Integer mimeTypeId)
Deprecated.
|
Obs |
getObs(Integer obsId) |
Obs |
getObsByUuid(String uuid)
Auto generated method comment
|
Integer |
getObservationCount(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
Integer obsGroupId,
Date fromDate,
Date toDate,
List<ConceptName> valueCodedNameAnswers,
boolean includeVoidedObs) |
List<Obs> |
getObservations(List<Person> whom,
List<Encounter> encounters,
List<Concept> questions,
List<Concept> answers,
List<OpenmrsConstants.PERSON_TYPE> personTypes,
List<Location> locations,
List<String> sortList,
Integer mostRecentN,
Integer obsGroupId,
Date fromDate,
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(Integer obsId) throws DAOException
getObs
in interface ObsDAO
DAOException
ObsService.getObs(java.lang.Integer)
@Deprecated public MimeType getMimeType(Integer mimeTypeId) throws DAOException
getMimeType
in interface ObsDAO
DAOException
ObsDAO.getMimeType(java.lang.Integer)
@Deprecated public 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 List<Obs> getObservations(List<Person> whom, List<Encounter> encounters, List<Concept> questions, List<Concept> answers, List<OpenmrsConstants.PERSON_TYPE> personTypes, List<Location> locations, List<String> sortList, Integer mostRecentN, Integer obsGroupId, Date fromDate, 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 Integer getObservationCount(List<Person> whom, List<Encounter> encounters, List<Concept> questions, List<Concept> answers, List<OpenmrsConstants.PERSON_TYPE> personTypes, List<Location> locations, Integer obsGroupId, Date fromDate, Date toDate, 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(String uuid)
ObsDAO
getObsByUuid
in interface ObsDAO
ObsDAO.getObsByUuid(java.lang.String)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.