|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CohortDAO
Database methods for cohort objects.
Cohort,
CohortService,
Context| 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 |
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 |
| Method Detail |
|---|
@Transactional(readOnly=true)
Cohort getCohort(java.lang.Integer id)
throws DAOException
id -
DAOException@Transactional(readOnly=true) Cohort getCohort(java.lang.String name)
name -
@Transactional(readOnly=true)
java.util.List<Cohort> getAllCohorts(boolean includeVoided)
throws DAOException
includeVoided - whether to include voided cohorts
DAOException
@Transactional(readOnly=true)
java.util.List<Cohort> getCohortsContainingPatientId(java.lang.Integer patientId)
throws DAOException
patientId -
DAOException
@Transactional
Cohort saveCohort(Cohort cohort)
throws DAOException
cohort -
DAOException
@Transactional(readOnly=true)
java.util.List<Cohort> getCohorts(java.lang.String nameFragment)
throws DAOException
nameFragment -
DAOException
@Transactional
Cohort deleteCohort(Cohort cohort)
throws DAOException
cohort -
DAOException
|
OpenMRS-trunk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||