| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
HibernateCohortDAO() |
| Modifier and Type | Method and Description |
|---|---|
Cohort |
deleteCohort(Cohort cohort)
Removes a cohort from the database
|
List<Cohort> |
getAllCohorts(boolean includeVoided)
Gets all cohorts in the database
|
Cohort |
getCohort(Integer id)
Finds the cohort with the given primary key
|
Cohort |
getCohort(String name)
Finds a cohort by name
|
Cohort |
getCohortByUuid(String uuid)
Auto generated method comment
|
List<Cohort> |
getCohorts(String nameFragment)
Finds all Cohorts with matching names
|
List<Cohort> |
getCohortsContainingPatientId(Integer patientId)
Finds all cohorts that contain the given patientId
|
Cohort |
saveCohort(Cohort cohort)
Saves a Cohort to the database
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Auto generated method comment
|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - public Cohort getCohort(Integer id) throws DAOException
CohortDAOgetCohort in interface CohortDAODAOExceptionCohortDAO.getCohort(java.lang.Integer)public List<Cohort> getCohortsContainingPatientId(Integer patientId) throws DAOException
CohortDAOgetCohortsContainingPatientId in interface CohortDAODAOExceptionCohortDAO.getCohortsContainingPatientId(java.lang.Integer)public Cohort getCohortByUuid(String uuid)
CohortDAOgetCohortByUuid in interface CohortDAOCohortDAO.getCohortByUuid(java.lang.String)public Cohort deleteCohort(Cohort cohort) throws DAOException
CohortDAOdeleteCohort in interface CohortDAODAOExceptionCohortDAO.deleteCohort(org.openmrs.Cohort)public List<Cohort> getCohorts(String nameFragment) throws DAOException
CohortDAOgetCohorts in interface CohortDAODAOExceptionCohortDAO.getCohorts(java.lang.String)public List<Cohort> getAllCohorts(boolean includeVoided) throws DAOException
CohortDAOgetAllCohorts in interface CohortDAOincludeVoided - whether to include voided cohortsDAOExceptionCohortDAO.getAllCohorts(boolean)public Cohort getCohort(String name)
CohortDAOgetCohort in interface CohortDAOCohortDAO.getCohort(java.lang.String)public Cohort saveCohort(Cohort cohort) throws DAOException
CohortDAOsaveCohort in interface CohortDAOcohort - Cohort to saveDAOExceptionCohortDAO.saveCohort(org.openmrs.Cohort)Copyright © 2018 OpenMRS LLC.. All Rights Reserved.