public class HibernateConceptDAO extends Object implements ConceptDAO
ConceptService to access these methodsConceptService| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
HibernateConceptDAO() |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - public ConceptComplex getConceptComplex(Integer conceptId)
ConceptDAOgetConceptComplex in interface ConceptDAOConceptDAO.getConceptComplex(java.lang.Integer)public Concept saveConcept(Concept concept) throws DAOException
saveConcept in interface ConceptDAODAOExceptionConceptDAO.saveConcept(org.openmrs.Concept)public void purgeConcept(Concept concept) throws DAOException
purgeConcept in interface ConceptDAODAOExceptionConceptDAO.purgeConcept(org.openmrs.Concept)public Concept getConcept(Integer conceptId) throws DAOException
getConcept in interface ConceptDAODAOExceptionConceptDAO.getConcept(java.lang.Integer)public ConceptName getConceptName(Integer conceptNameId) throws DAOException
getConceptName in interface ConceptDAODAOExceptionConceptDAO.getConceptName(java.lang.Integer)public ConceptAnswer getConceptAnswer(Integer conceptAnswerId) throws DAOException
getConceptAnswer in interface ConceptDAODAOExceptionConceptDAO.getConceptAnswer(java.lang.Integer)public List<Concept> getAllConcepts(String sortBy, boolean asc, boolean includeRetired) throws DAOException
getAllConcepts in interface ConceptDAODAOExceptionConceptDAO.getAllConcepts(java.lang.String, boolean, boolean)public Drug saveDrug(Drug drug) throws DAOException
saveDrug in interface ConceptDAODAOExceptionConceptDAO.saveDrug(org.openmrs.Drug)public Drug getDrug(Integer drugId) throws DAOException
getDrug in interface ConceptDAODAOExceptionConceptDAO.getDrug(java.lang.Integer)public List<Drug> getDrugs(String drugName, Concept concept, boolean includeRetired) throws DAOException
ConceptDAOgetDrugs in interface ConceptDAODAOExceptionConceptDAO.getDrugs(java.lang.String, org.openmrs.Concept, boolean)public List<Drug> getDrugs(String phrase) throws DAOException
getDrugs in interface ConceptDAODAOExceptionConceptDAO.getDrugs(java.lang.String)public ConceptClass getConceptClass(Integer i) throws DAOException
getConceptClass in interface ConceptDAODAOExceptionConceptDAO.getConceptClass(java.lang.Integer)public List<ConceptClass> getConceptClasses(String name) throws DAOException
getConceptClasses in interface ConceptDAODAOExceptionConceptDAO.getConceptClasses(java.lang.String)public List<ConceptClass> getAllConceptClasses(boolean includeRetired) throws DAOException
getAllConceptClasses in interface ConceptDAODAOExceptionConceptDAO.getAllConceptClasses(boolean)public ConceptClass saveConceptClass(ConceptClass cc) throws DAOException
saveConceptClass in interface ConceptDAODAOExceptionConceptDAO.saveConceptClass(org.openmrs.ConceptClass)public void purgeConceptClass(ConceptClass cc) throws DAOException
purgeConceptClass in interface ConceptDAODAOExceptionConceptDAO.purgeConceptClass(org.openmrs.ConceptClass)public ConceptDatatype getConceptDatatype(Integer i)
getConceptDatatype in interface ConceptDAOConceptDAO.getConceptDatatype(java.lang.Integer)public List<ConceptDatatype> getAllConceptDatatypes(boolean includeRetired) throws DAOException
getAllConceptDatatypes in interface ConceptDAODAOExceptionConceptDAO.getAllConceptDatatypes(boolean)public List<ConceptDatatype> getConceptDatatypes(String name) throws DAOException
getConceptDatatypes in interface ConceptDAODAOExceptionConceptDAO.getConceptDatatypes(java.lang.String)public ConceptDatatype getConceptDatatypeByName(String name) throws DAOException
getConceptDatatypeByName in interface ConceptDAOConceptDatatype that matches name exactly or null if one does
not exist.DAOExceptionConceptDAO.getConceptDatatypeByName(String)public ConceptDatatype saveConceptDatatype(ConceptDatatype cd) throws DAOException
saveConceptDatatype in interface ConceptDAODAOExceptionConceptDAO.saveConceptDatatype(org.openmrs.ConceptDatatype)public void purgeConceptDatatype(ConceptDatatype cd) throws DAOException
purgeConceptDatatype in interface ConceptDAODAOExceptionConceptDAO.purgeConceptDatatype(org.openmrs.ConceptDatatype)public ConceptNumeric getConceptNumeric(Integer i)
getConceptNumeric in interface ConceptDAOConceptDAO.getConceptNumeric(java.lang.Integer)public List<Concept> getConcepts(String name, Locale loc, boolean searchOnPhrase, List<ConceptClass> classes, List<ConceptDatatype> datatypes) throws DAOException
ConceptDAOgetConcepts in interface ConceptDAOsearchOnPhrase - This puts wildcard characters around the concept name search criteriaDAOExceptionConceptDAO.getConcepts(java.lang.String, java.util.Locale, boolean,
java.util.List, java.util.List)public List<ConceptWord> getConceptWords(String phrase, List<Locale> locales, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes, Concept answersToConcept, Integer start, Integer size) throws DAOException
public List<Concept> getConceptsByAnswer(Concept concept)
getConceptsByAnswer in interface ConceptDAOConceptDAO.getConceptsByAnswer(org.openmrs.Concept)public Concept getPrevConcept(Concept c)
getPrevConcept in interface ConceptDAOConceptDAO.getPrevConcept(org.openmrs.Concept)public Concept getNextConcept(Concept c)
getNextConcept in interface ConceptDAOConceptDAO.getNextConcept(org.openmrs.Concept)public List<Concept> getConceptsWithDrugsInFormulary()
getConceptsWithDrugsInFormulary in interface ConceptDAOConceptDAO.getConceptsWithDrugsInFormulary()public void purgeDrug(Drug drug) throws DAOException
purgeDrug in interface ConceptDAODAOExceptionConceptDAO.purgeDrug(org.openmrs.Drug)public void updateConceptWord(Concept concept) throws DAOException
updateConceptWord in interface ConceptDAODAOExceptionConceptDAO.updateConceptWord(org.openmrs.Concept)public ConceptProposal saveConceptProposal(ConceptProposal cp) throws DAOException
saveConceptProposal in interface ConceptDAODAOExceptionConceptDAO.saveConceptProposal(org.openmrs.ConceptProposal)public void purgeConceptProposal(ConceptProposal cp) throws DAOException
purgeConceptProposal in interface ConceptDAODAOExceptionConceptDAO.purgeConceptProposal(org.openmrs.ConceptProposal)public List<ConceptProposal> getAllConceptProposals(boolean includeCompleted) throws DAOException
getAllConceptProposals in interface ConceptDAODAOExceptionConceptDAO.getAllConceptProposals(boolean)public ConceptProposal getConceptProposal(Integer conceptProposalId) throws DAOException
getConceptProposal in interface ConceptDAODAOExceptionConceptDAO.getConceptProposal(java.lang.Integer)public List<ConceptProposal> getConceptProposals(String text) throws DAOException
getConceptProposals in interface ConceptDAODAOExceptionConceptDAO.getConceptProposals(java.lang.String)public List<Concept> getProposedConcepts(String text) throws DAOException
getProposedConcepts in interface ConceptDAODAOExceptionConceptDAO.getProposedConcepts(java.lang.String)public List<ConceptSet> getConceptSetsByConcept(Concept concept)
getConceptSetsByConcept in interface ConceptDAOConceptDAO.getConceptSetsByConcept(org.openmrs.Concept)public List<ConceptSet> getSetsContainingConcept(Concept concept)
getSetsContainingConcept in interface ConceptDAOConceptDAO.getSetsContainingConcept(org.openmrs.Concept)public void updateConceptSetDerived()
throws DAOException
updateConceptSetDerived in interface ConceptDAODAOExceptionConceptDAO.updateConceptSetDerived()public void updateConceptSetDerived(Concept concept) throws DAOException
updateConceptSetDerived in interface ConceptDAODAOExceptionConceptDAO.updateConceptSetDerived(org.openmrs.Concept)public Set<Locale> getLocalesOfConceptNames()
getLocalesOfConceptNames in interface ConceptDAOConceptDAO.getLocalesOfConceptNames()public ConceptNameTag getConceptNameTag(Integer i)
getConceptNameTag in interface ConceptDAOConceptDAO.getConceptNameTag(java.lang.Integer)public ConceptNameTag getConceptNameTagByName(String name)
getConceptNameTagByName in interface ConceptDAOConceptDAO.getConceptNameTagByName(java.lang.String)public List<ConceptNameTag> getAllConceptNameTags()
getAllConceptNameTags in interface ConceptDAOConceptDAO.getAllConceptNameTags()public ConceptSource getConceptSource(Integer conceptSourceId)
getConceptSource in interface ConceptDAOConceptDAO.getConceptSource(java.lang.Integer)public List<ConceptSource> getAllConceptSources()
getAllConceptSources in interface ConceptDAOConceptDAO.getAllConceptSources()public ConceptSource deleteConceptSource(ConceptSource cs) throws DAOException
deleteConceptSource in interface ConceptDAODAOExceptionConceptDAO.deleteConceptSource(org.openmrs.ConceptSource)public ConceptSource saveConceptSource(ConceptSource conceptSource) throws DAOException
saveConceptSource in interface ConceptDAODAOExceptionConceptDAO.saveConceptSource(org.openmrs.ConceptSource)public ConceptNameTag saveConceptNameTag(ConceptNameTag nameTag)
saveConceptNameTag in interface ConceptDAOConceptDAO.saveConceptNameTag(org.openmrs.ConceptNameTag)public Integer getMinConceptId()
ConceptDAO.getMaxConceptId()public Integer getMaxConceptId()
getMaxConceptId in interface ConceptDAOConceptDAO.getMaxConceptId()public Iterator<Concept> conceptIterator()
conceptIterator in interface ConceptDAOConceptDAO.conceptIterator()public List<Concept> getConceptsByMapping(String code, String sourceName, boolean includeRetired)
getConceptsByMapping in interface ConceptDAOorg.openmrs.api.db.ConceptDAO#getConceptsByMapping(java.lang.String, java.lang.String)public Concept getConceptByUuid(String uuid)
ConceptDAOgetConceptByUuid in interface ConceptDAOConceptDAO.getConceptByUuid(java.lang.String)public ConceptClass getConceptClassByUuid(String uuid)
ConceptDAOgetConceptClassByUuid in interface ConceptDAOConceptDAO.getConceptClassByUuid(java.lang.String)public ConceptAnswer getConceptAnswerByUuid(String uuid)
getConceptAnswerByUuid in interface ConceptDAOpublic ConceptName getConceptNameByUuid(String uuid)
getConceptNameByUuid in interface ConceptDAOpublic ConceptSet getConceptSetByUuid(String uuid)
getConceptSetByUuid in interface ConceptDAOpublic ConceptSetDerived getConceptSetDerivedByUuid(String uuid)
getConceptSetDerivedByUuid in interface ConceptDAOpublic ConceptSource getConceptSourceByUuid(String uuid)
getConceptSourceByUuid in interface ConceptDAOpublic ConceptWord getConceptWordByUuid(String uuid)
getConceptWordByUuid in interface ConceptDAOpublic ConceptDatatype getConceptDatatypeByUuid(String uuid)
ConceptDAOgetConceptDatatypeByUuid in interface ConceptDAOConceptDAO.getConceptDatatypeByUuid(java.lang.String)public ConceptNumeric getConceptNumericByUuid(String uuid)
ConceptDAOgetConceptNumericByUuid in interface ConceptDAOConceptDAO.getConceptNumericByUuid(java.lang.String)public ConceptProposal getConceptProposalByUuid(String uuid)
ConceptDAOgetConceptProposalByUuid in interface ConceptDAOConceptDAO.getConceptProposalByUuid(java.lang.String)public Drug getDrugByUuid(String uuid)
ConceptDAOgetDrugByUuid in interface ConceptDAOConceptDAO.getDrugByUuid(java.lang.String)public DrugIngredient getDrugIngredientByUuid(String uuid)
getDrugIngredientByUuid in interface ConceptDAOpublic Map<Integer,String> getConceptUuids()
getConceptUuids in interface ConceptDAOConceptDAO.getConceptUuids()public ConceptDescription getConceptDescriptionByUuid(String uuid)
getConceptDescriptionByUuid in interface ConceptDAOConceptDAO.getConceptDescriptionByUuid(java.lang.String)public ConceptNameTag getConceptNameTagByUuid(String uuid)
getConceptNameTagByUuid in interface ConceptDAOConceptDAO.getConceptNameTagByUuid(java.lang.String)public List<ConceptMap> getConceptsByConceptSource(ConceptSource conceptSource) throws DAOException
getConceptsByConceptSource in interface ConceptDAODAOExceptionorg.openmrs.api.db.ConceptDAO#getConceptsByConceptSourceName(java.lang.String,
java.lang.String)public ConceptSource getConceptSourceByName(String conceptSourceName) throws DAOException
getConceptSourceByName in interface ConceptDAODAOExceptionConceptDAO.getConceptSourceByName(java.lang.String)public ConceptDatatype getSavedConceptDatatype(Concept concept)
ConceptDAOgetSavedConceptDatatype in interface ConceptDAOconcept - for which the conceptDatatype should be fetchedConceptDAO.getSavedConceptDatatype(org.openmrs.Concept)public ConceptName getSavedConceptName(ConceptName conceptName)
ConceptDAOgetSavedConceptName in interface ConceptDAOconceptName - ConceptName to fetch from the databaseConceptDAO.getSavedConceptName(org.openmrs.ConceptName)public Integer getCountOfConceptWords(String phrase, List<Locale> locales, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes, Concept answersToConcept, boolean forUniqueConcepts)
ConceptDAOgetCountOfConceptWords in interface ConceptDAOphrase - text to search onlocales - the locales to restrict toincludeRetired - Specifies whether to include retired conceptsrequireClasses - ListexcludeClasses - ListrequireDatatypes - ListexcludeDatatypes - ListanswersToConcept - all results will be a possible answer to this conceptforUniqueConcepts - Specifies if conceptWords that are associated to multiple
conceptWords should be counted one or more times.org.openmrs.api.db.ConceptDAO#getCountOfConceptWords(String, List, boolean, List, List,
List, List, Concept)public Integer getCountOfDrugs(String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired) throws DAOException
getCountOfDrugs in interface ConceptDAODAOExceptionConceptService#getCountOfDrugs(String, Concept, boolean, boolean)public List<Drug> getDrugs(String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired, Integer start, Integer length) throws DAOException
getDrugs in interface ConceptDAODAOExceptionConceptService.getDrugs(String, Concept, boolean, boolean, boolean, Integer, Integer)public List<ConceptSearchResult> getConcepts(String phrase, List<Locale> locales, boolean includeRetired, List<ConceptClass> requireClasses, List<ConceptClass> excludeClasses, List<ConceptDatatype> requireDatatypes, List<ConceptDatatype> excludeDatatypes, Concept answersToConcept, Integer start, Integer size) throws DAOException
getConcepts in interface ConceptDAODAOExceptionConceptDAO.getConcepts(String, List, boolean, List, List, List, List, Concept, Integer,
Integer)public Double weighConceptWord(ConceptWord word)
ConceptDAOweighConceptWord in interface ConceptDAOword - the word for which to compute the weightConceptDAO.weighConceptWord(ConceptWord)public List<Concept> getConceptsByName(String name, Locale locale, Boolean exactLocale)
getConceptsByName in interface ConceptDAOConceptDAO.getConceptsByName(java.lang.String, java.util.Locale,
java.lang.Boolean)Copyright © 2018 OpenMRS LLC.. All Rights Reserved.