|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.api.db.hibernate.HibernateCohortDAO
public class HibernateCohortDAO
Hibernate implementation of the CohortDAO
CohortDAO,
Context,
CohortService| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
HibernateCohortDAO()
|
|
| Method Summary | |
|---|---|
Cohort |
deleteCohort(Cohort cohort)
Removes a cohort from the database |
java.util.List<Cohort> |
getAllCohorts(boolean includeVoided)
Gets all cohorts in the database |
Cohort |
getCohort(java.lang.Integer id)
Finds the cohort with the given primary key |
Cohort |
getCohort(java.lang.String name)
Finds a cohort by name |
Cohort |
getCohortByUuid(java.lang.String uuid)
Auto generated method comment |
java.util.List<Cohort> |
getCohorts(java.lang.String nameFragment)
Finds all Cohorts with matching names |
java.util.List<Cohort> |
getCohortsContainingPatientId(java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public HibernateCohortDAO()
| Method Detail |
|---|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory -
public Cohort getCohort(java.lang.Integer id)
throws DAOException
CohortDAO
getCohort in interface CohortDAODAOExceptionCohortDAO.getCohort(java.lang.Integer)
public java.util.List<Cohort> getCohortsContainingPatientId(java.lang.Integer patientId)
throws DAOException
CohortDAO
getCohortsContainingPatientId in interface CohortDAODAOExceptionCohortDAO.getCohortsContainingPatientId(java.lang.Integer)public Cohort getCohortByUuid(java.lang.String uuid)
CohortDAO
getCohortByUuid in interface CohortDAOCohortDAO.getCohortByUuid(java.lang.String)
public Cohort deleteCohort(Cohort cohort)
throws DAOException
CohortDAO
deleteCohort in interface CohortDAODAOExceptionCohortDAO.deleteCohort(org.openmrs.Cohort)
public java.util.List<Cohort> getCohorts(java.lang.String nameFragment)
throws DAOException
CohortDAO
getCohorts in interface CohortDAODAOExceptionCohortDAO.getCohorts(java.lang.String)
public java.util.List<Cohort> getAllCohorts(boolean includeVoided)
throws DAOException
CohortDAO
getAllCohorts in interface CohortDAOincludeVoided - whether to include voided cohorts
DAOExceptionCohortDAO.getAllCohorts(boolean)public Cohort getCohort(java.lang.String name)
CohortDAO
getCohort in interface CohortDAOCohortDAO.getCohort(java.lang.String)
public Cohort saveCohort(Cohort cohort)
throws DAOException
CohortDAO
saveCohort in interface CohortDAOcohort - Cohort to save
DAOExceptionCohortDAO.saveCohort(org.openmrs.Cohort)
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||