|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.api.db.hibernate.HibernateConceptDAO
public class HibernateConceptDAO
The Hibernate class for Concepts, Drugs, and related classes.
Use the ConceptService
to access these methods
ConceptService
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
HibernateConceptDAO()
|
Method Summary | |
---|---|
java.util.Iterator<Concept> |
conceptIterator()
|
ConceptSource |
deleteConceptSource(ConceptSource cs)
|
java.util.List<ConceptClass> |
getAllConceptClasses(boolean includeRetired)
|
java.util.List<ConceptDatatype> |
getAllConceptDatatypes(boolean includeRetired)
|
java.util.List<ConceptNameTag> |
getAllConceptNameTags()
|
java.util.List<ConceptProposal> |
getAllConceptProposals(boolean includeCompleted)
|
java.util.List<Concept> |
getAllConcepts(java.lang.String sortBy,
boolean asc,
boolean includeRetired)
|
java.util.List<ConceptSource> |
getAllConceptSources()
|
Concept |
getConcept(java.lang.Integer conceptId)
|
ConceptAnswer |
getConceptAnswer(java.lang.Integer conceptAnswerId)
|
ConceptAnswer |
getConceptAnswerByUuid(java.lang.String uuid)
|
Concept |
getConceptByMapping(java.lang.String conceptCode,
java.lang.String mappingCode)
|
Concept |
getConceptByUuid(java.lang.String uuid)
Auto generated method comment |
ConceptClass |
getConceptClass(java.lang.Integer i)
|
ConceptClass |
getConceptClassByUuid(java.lang.String uuid)
Auto generated method comment |
java.util.List<ConceptClass> |
getConceptClasses(java.lang.String name)
|
ConceptComplex |
getConceptComplex(java.lang.Integer conceptId)
Get a ConceptComplex. |
ConceptDatatype |
getConceptDatatype(java.lang.Integer i)
|
ConceptDatatype |
getConceptDatatypeByName(java.lang.String name)
|
ConceptDatatype |
getConceptDatatypeByUuid(java.lang.String uuid)
Auto generated method comment |
java.util.List<ConceptDatatype> |
getConceptDatatypes(java.lang.String name)
|
ConceptDerived |
getConceptDerivedByUuid(java.lang.String uuid)
|
ConceptDescription |
getConceptDescriptionByUuid(java.lang.String uuid)
|
ConceptName |
getConceptName(java.lang.Integer conceptNameId)
|
ConceptName |
getConceptNameByUuid(java.lang.String uuid)
|
ConceptNameTag |
getConceptNameTag(java.lang.Integer i)
|
ConceptNameTag |
getConceptNameTagByName(java.lang.String name)
|
ConceptNameTag |
getConceptNameTagByUuid(java.lang.String uuid)
|
ConceptNumeric |
getConceptNumeric(java.lang.Integer i)
|
ConceptNumeric |
getConceptNumericByUuid(java.lang.String uuid)
Auto generated method comment |
ConceptProposal |
getConceptProposal(java.lang.Integer conceptProposalId)
|
ConceptProposal |
getConceptProposalByUuid(java.lang.String uuid)
Auto generated method comment |
java.util.List<ConceptProposal> |
getConceptProposals(java.lang.String text)
|
java.util.List<Concept> |
getConcepts(java.lang.String name,
java.util.Locale loc,
boolean searchOnPhrase,
java.util.List<ConceptClass> classes,
java.util.List<ConceptDatatype> datatypes)
Returns a list of concepts based on the search criteria |
java.util.List<Concept> |
getConceptsByAnswer(Concept concept)
gets questions for the given answer concept |
java.util.List<ConceptMap> |
getConceptsByConceptSource(ConceptSource conceptSource)
|
ConceptSet |
getConceptSetByUuid(java.lang.String uuid)
|
ConceptSetDerived |
getConceptSetDerivedByUuid(java.lang.String uuid)
|
java.util.List<ConceptSet> |
getConceptSetsByConcept(Concept concept)
|
ConceptSource |
getConceptSource(java.lang.Integer conceptSourceId)
|
ConceptSource |
getConceptSourceByName(java.lang.String conceptSourceName)
|
ConceptSource |
getConceptSourceByUuid(java.lang.String uuid)
|
java.util.List<Concept> |
getConceptsWithDrugsInFormulary()
|
java.util.Map<java.lang.Integer,java.lang.String> |
getConceptUuids()
|
ConceptWord |
getConceptWordByUuid(java.lang.String uuid)
|
java.util.List<ConceptWord> |
getConceptWords(java.lang.String phrase,
java.util.List<java.util.Locale> locales,
boolean includeRetired,
java.util.List<ConceptClass> requireClasses,
java.util.List<ConceptClass> excludeClasses,
java.util.List<ConceptDatatype> requireDatatypes,
java.util.List<ConceptDatatype> excludeDatatypes,
Concept answersToConcept,
java.lang.Integer start,
java.lang.Integer size)
|
Drug |
getDrug(java.lang.Integer drugId)
|
Drug |
getDrugByUuid(java.lang.String uuid)
Auto generated method comment |
DrugIngredient |
getDrugIngredientByUuid(java.lang.String uuid)
|
java.util.List<Drug> |
getDrugs(java.lang.String phrase)
|
java.util.List<Drug> |
getDrugs(java.lang.String drugName,
Concept concept,
boolean includeRetired)
DAO for retrieving a list of drugs based on the following criteria |
java.util.Set<java.util.Locale> |
getLocalesOfConceptNames()
|
java.lang.Integer |
getMaxConceptId()
|
java.lang.Integer |
getMinConceptId()
|
Concept |
getNextConcept(Concept c)
|
Concept |
getPrevConcept(Concept c)
|
java.util.List<Concept> |
getProposedConcepts(java.lang.String text)
|
ConceptDatatype |
getSavedConceptDatatype(Concept concept)
Gets the value of conceptDatatype currently saved in the database for the given concept, bypassing any caches. |
ConceptName |
getSavedConceptName(ConceptName conceptName)
Gets the persisted copy of the conceptName currently saved in the database for the given conceptName, bypassing any caches. |
java.util.List<ConceptSet> |
getSetsContainingConcept(Concept concept)
|
void |
purgeConcept(Concept concept)
|
void |
purgeConceptClass(ConceptClass cc)
|
void |
purgeConceptDatatype(ConceptDatatype cd)
|
void |
purgeConceptProposal(ConceptProposal cp)
|
void |
purgeDrug(Drug drug)
|
Concept |
saveConcept(Concept concept)
|
ConceptClass |
saveConceptClass(ConceptClass cc)
|
ConceptDatatype |
saveConceptDatatype(ConceptDatatype cd)
|
ConceptNameTag |
saveConceptNameTag(ConceptNameTag nameTag)
|
ConceptProposal |
saveConceptProposal(ConceptProposal cp)
|
ConceptSource |
saveConceptSource(ConceptSource conceptSource)
|
Drug |
saveDrug(Drug drug)
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Sets the session factory |
void |
updateConceptSetDerived()
|
void |
updateConceptSetDerived(Concept concept)
|
void |
updateConceptWord(Concept concept)
|
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 HibernateConceptDAO()
Method Detail |
---|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public ConceptComplex getConceptComplex(java.lang.Integer conceptId)
ConceptDAO
getConceptComplex
in interface ConceptDAO
ConceptDAO.getConceptComplex(java.lang.Integer)
public Concept saveConcept(Concept concept) throws DAOException
saveConcept
in interface ConceptDAO
DAOException
ConceptDAO.saveConcept(org.openmrs.Concept)
public void purgeConcept(Concept concept) throws DAOException
purgeConcept
in interface ConceptDAO
DAOException
ConceptDAO.purgeConcept(org.openmrs.Concept)
public Concept getConcept(java.lang.Integer conceptId) throws DAOException
getConcept
in interface ConceptDAO
DAOException
ConceptDAO.getConcept(java.lang.Integer)
public ConceptName getConceptName(java.lang.Integer conceptNameId) throws DAOException
getConceptName
in interface ConceptDAO
DAOException
ConceptDAO.getConceptName(java.lang.Integer)
public ConceptAnswer getConceptAnswer(java.lang.Integer conceptAnswerId) throws DAOException
getConceptAnswer
in interface ConceptDAO
DAOException
ConceptDAO.getConceptAnswer(java.lang.Integer)
public java.util.List<Concept> getAllConcepts(java.lang.String sortBy, boolean asc, boolean includeRetired) throws DAOException
getAllConcepts
in interface ConceptDAO
DAOException
ConceptDAO.getAllConcepts(java.lang.String, boolean, boolean)
public Drug saveDrug(Drug drug) throws DAOException
saveDrug
in interface ConceptDAO
DAOException
ConceptDAO.saveDrug(org.openmrs.Drug)
public Drug getDrug(java.lang.Integer drugId) throws DAOException
getDrug
in interface ConceptDAO
DAOException
ConceptDAO.getDrug(java.lang.Integer)
public java.util.List<Drug> getDrugs(java.lang.String drugName, Concept concept, boolean includeRetired) throws DAOException
ConceptDAO
getDrugs
in interface ConceptDAO
DAOException
ConceptDAO.getDrugs(java.lang.String, org.openmrs.Concept, boolean)
public java.util.List<Drug> getDrugs(java.lang.String phrase) throws DAOException
getDrugs
in interface ConceptDAO
DAOException
ConceptDAO.getDrugs(java.lang.String)
public ConceptClass getConceptClass(java.lang.Integer i) throws DAOException
getConceptClass
in interface ConceptDAO
DAOException
ConceptDAO.getConceptClass(java.lang.Integer)
public java.util.List<ConceptClass> getConceptClasses(java.lang.String name) throws DAOException
getConceptClasses
in interface ConceptDAO
DAOException
ConceptDAO.getConceptClasses(java.lang.String)
public java.util.List<ConceptClass> getAllConceptClasses(boolean includeRetired) throws DAOException
getAllConceptClasses
in interface ConceptDAO
DAOException
ConceptDAO.getAllConceptClasses(boolean)
public ConceptClass saveConceptClass(ConceptClass cc) throws DAOException
saveConceptClass
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptClass(org.openmrs.ConceptClass)
public void purgeConceptClass(ConceptClass cc) throws DAOException
purgeConceptClass
in interface ConceptDAO
DAOException
ConceptDAO.purgeConceptClass(org.openmrs.ConceptClass)
public ConceptDatatype getConceptDatatype(java.lang.Integer i)
getConceptDatatype
in interface ConceptDAO
ConceptDAO.getConceptDatatype(java.lang.Integer)
public java.util.List<ConceptDatatype> getAllConceptDatatypes(boolean includeRetired) throws DAOException
getAllConceptDatatypes
in interface ConceptDAO
DAOException
ConceptDAO.getAllConceptDatatypes(boolean)
public java.util.List<ConceptDatatype> getConceptDatatypes(java.lang.String name) throws DAOException
getConceptDatatypes
in interface ConceptDAO
DAOException
ConceptDAO.getConceptDatatypes(java.lang.String)
public ConceptDatatype getConceptDatatypeByName(java.lang.String name) throws DAOException
getConceptDatatypeByName
in interface ConceptDAO
ConceptDatatype
that matches name exactly or null if one does
not exist.
DAOException
ConceptDAO.getConceptDatatypeByName(String)
public ConceptDatatype saveConceptDatatype(ConceptDatatype cd) throws DAOException
saveConceptDatatype
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptDatatype(org.openmrs.ConceptDatatype)
public void purgeConceptDatatype(ConceptDatatype cd) throws DAOException
purgeConceptDatatype
in interface ConceptDAO
DAOException
ConceptDAO.purgeConceptDatatype(org.openmrs.ConceptDatatype)
public ConceptNumeric getConceptNumeric(java.lang.Integer i)
getConceptNumeric
in interface ConceptDAO
ConceptDAO.getConceptNumeric(java.lang.Integer)
public java.util.List<Concept> getConcepts(java.lang.String name, java.util.Locale loc, boolean searchOnPhrase, java.util.List<ConceptClass> classes, java.util.List<ConceptDatatype> datatypes) throws DAOException
ConceptDAO
getConcepts
in interface ConceptDAO
searchOnPhrase
- This puts wildcard characters around the concept name search criteria
DAOException
ConceptDAO.getConcepts(java.lang.String, java.util.Locale, boolean,
java.util.List, java.util.List)
public java.util.List<ConceptWord> getConceptWords(java.lang.String phrase, java.util.List<java.util.Locale> locales, boolean includeRetired, java.util.List<ConceptClass> requireClasses, java.util.List<ConceptClass> excludeClasses, java.util.List<ConceptDatatype> requireDatatypes, java.util.List<ConceptDatatype> excludeDatatypes, Concept answersToConcept, java.lang.Integer start, java.lang.Integer size) throws DAOException
getConceptWords
in interface ConceptDAO
DAOException
ConceptDAO.getConceptWords(java.lang.String, java.util.List, boolean,
java.util.List, java.util.List, java.util.List, java.util.List, org.openmrs.Concept,
java.lang.Integer, java.lang.Integer)
public java.util.List<Concept> getConceptsByAnswer(Concept concept)
getConceptsByAnswer
in interface ConceptDAO
ConceptDAO.getConceptsByAnswer(org.openmrs.Concept)
public Concept getPrevConcept(Concept c)
getPrevConcept
in interface ConceptDAO
ConceptDAO.getPrevConcept(org.openmrs.Concept)
public Concept getNextConcept(Concept c)
getNextConcept
in interface ConceptDAO
ConceptDAO.getNextConcept(org.openmrs.Concept)
public java.util.List<Concept> getConceptsWithDrugsInFormulary()
getConceptsWithDrugsInFormulary
in interface ConceptDAO
ConceptDAO.getConceptsWithDrugsInFormulary()
public void purgeDrug(Drug drug) throws DAOException
purgeDrug
in interface ConceptDAO
DAOException
ConceptDAO.purgeDrug(org.openmrs.Drug)
public void updateConceptWord(Concept concept) throws DAOException
updateConceptWord
in interface ConceptDAO
DAOException
ConceptDAO.updateConceptWord(org.openmrs.Concept)
public ConceptProposal saveConceptProposal(ConceptProposal cp) throws DAOException
saveConceptProposal
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptProposal(org.openmrs.ConceptProposal)
public void purgeConceptProposal(ConceptProposal cp) throws DAOException
purgeConceptProposal
in interface ConceptDAO
DAOException
ConceptDAO.purgeConceptProposal(org.openmrs.ConceptProposal)
public java.util.List<ConceptProposal> getAllConceptProposals(boolean includeCompleted) throws DAOException
getAllConceptProposals
in interface ConceptDAO
DAOException
ConceptDAO.getAllConceptProposals(boolean)
public ConceptProposal getConceptProposal(java.lang.Integer conceptProposalId) throws DAOException
getConceptProposal
in interface ConceptDAO
DAOException
ConceptDAO.getConceptProposal(java.lang.Integer)
public java.util.List<ConceptProposal> getConceptProposals(java.lang.String text) throws DAOException
getConceptProposals
in interface ConceptDAO
DAOException
ConceptDAO.getConceptProposals(java.lang.String)
public java.util.List<Concept> getProposedConcepts(java.lang.String text) throws DAOException
getProposedConcepts
in interface ConceptDAO
DAOException
ConceptDAO.getProposedConcepts(java.lang.String)
public java.util.List<ConceptSet> getConceptSetsByConcept(Concept concept)
getConceptSetsByConcept
in interface ConceptDAO
ConceptDAO.getConceptSetsByConcept(org.openmrs.Concept)
public java.util.List<ConceptSet> getSetsContainingConcept(Concept concept)
getSetsContainingConcept
in interface ConceptDAO
ConceptDAO.getSetsContainingConcept(org.openmrs.Concept)
public void updateConceptSetDerived() throws DAOException
updateConceptSetDerived
in interface ConceptDAO
DAOException
ConceptDAO.updateConceptSetDerived()
public void updateConceptSetDerived(Concept concept) throws DAOException
updateConceptSetDerived
in interface ConceptDAO
DAOException
ConceptDAO.updateConceptSetDerived(org.openmrs.Concept)
public java.util.Set<java.util.Locale> getLocalesOfConceptNames()
getLocalesOfConceptNames
in interface ConceptDAO
ConceptDAO.getLocalesOfConceptNames()
public ConceptNameTag getConceptNameTag(java.lang.Integer i)
getConceptNameTag
in interface ConceptDAO
ConceptDAO.getConceptNameTag(java.lang.Integer)
public ConceptNameTag getConceptNameTagByName(java.lang.String name)
getConceptNameTagByName
in interface ConceptDAO
ConceptDAO.getConceptNameTagByName(java.lang.String)
public java.util.List<ConceptNameTag> getAllConceptNameTags()
getAllConceptNameTags
in interface ConceptDAO
ConceptDAO.getAllConceptNameTags()
public ConceptSource getConceptSource(java.lang.Integer conceptSourceId)
getConceptSource
in interface ConceptDAO
ConceptDAO.getConceptSource(java.lang.Integer)
public java.util.List<ConceptSource> getAllConceptSources()
getAllConceptSources
in interface ConceptDAO
ConceptDAO.getAllConceptSources()
public ConceptSource deleteConceptSource(ConceptSource cs) throws DAOException
deleteConceptSource
in interface ConceptDAO
DAOException
ConceptDAO.deleteConceptSource(org.openmrs.ConceptSource)
public ConceptSource saveConceptSource(ConceptSource conceptSource) throws DAOException
saveConceptSource
in interface ConceptDAO
DAOException
ConceptDAO.saveConceptSource(org.openmrs.ConceptSource)
public ConceptNameTag saveConceptNameTag(ConceptNameTag nameTag)
saveConceptNameTag
in interface ConceptDAO
ConceptDAO.saveConceptNameTag(org.openmrs.ConceptNameTag)
public java.lang.Integer getMinConceptId()
ConceptDAO.getMaxConceptId()
public java.lang.Integer getMaxConceptId()
getMaxConceptId
in interface ConceptDAO
ConceptDAO.getMaxConceptId()
public java.util.Iterator<Concept> conceptIterator()
conceptIterator
in interface ConceptDAO
ConceptDAO.conceptIterator()
public Concept getConceptByMapping(java.lang.String conceptCode, java.lang.String mappingCode)
getConceptByMapping
in interface ConceptDAO
ConceptDAO.getConceptByMapping(java.lang.String, java.lang.String)
public Concept getConceptByUuid(java.lang.String uuid)
ConceptDAO
getConceptByUuid
in interface ConceptDAO
ConceptDAO.getConceptByUuid(java.lang.String)
public ConceptClass getConceptClassByUuid(java.lang.String uuid)
ConceptDAO
getConceptClassByUuid
in interface ConceptDAO
ConceptDAO.getConceptClassByUuid(java.lang.String)
public ConceptAnswer getConceptAnswerByUuid(java.lang.String uuid)
getConceptAnswerByUuid
in interface ConceptDAO
public ConceptDerived getConceptDerivedByUuid(java.lang.String uuid)
getConceptDerivedByUuid
in interface ConceptDAO
public ConceptName getConceptNameByUuid(java.lang.String uuid)
getConceptNameByUuid
in interface ConceptDAO
public ConceptSet getConceptSetByUuid(java.lang.String uuid)
getConceptSetByUuid
in interface ConceptDAO
public ConceptSetDerived getConceptSetDerivedByUuid(java.lang.String uuid)
getConceptSetDerivedByUuid
in interface ConceptDAO
public ConceptSource getConceptSourceByUuid(java.lang.String uuid)
getConceptSourceByUuid
in interface ConceptDAO
public ConceptWord getConceptWordByUuid(java.lang.String uuid)
getConceptWordByUuid
in interface ConceptDAO
public ConceptDatatype getConceptDatatypeByUuid(java.lang.String uuid)
ConceptDAO
getConceptDatatypeByUuid
in interface ConceptDAO
ConceptDAO.getConceptDatatypeByUuid(java.lang.String)
public ConceptNumeric getConceptNumericByUuid(java.lang.String uuid)
ConceptDAO
getConceptNumericByUuid
in interface ConceptDAO
ConceptDAO.getConceptNumericByUuid(java.lang.String)
public ConceptProposal getConceptProposalByUuid(java.lang.String uuid)
ConceptDAO
getConceptProposalByUuid
in interface ConceptDAO
ConceptDAO.getConceptProposalByUuid(java.lang.String)
public Drug getDrugByUuid(java.lang.String uuid)
ConceptDAO
getDrugByUuid
in interface ConceptDAO
ConceptDAO.getDrugByUuid(java.lang.String)
public DrugIngredient getDrugIngredientByUuid(java.lang.String uuid)
getDrugIngredientByUuid
in interface ConceptDAO
public java.util.Map<java.lang.Integer,java.lang.String> getConceptUuids()
getConceptUuids
in interface ConceptDAO
ConceptDAO.getConceptUuids()
public ConceptDescription getConceptDescriptionByUuid(java.lang.String uuid)
getConceptDescriptionByUuid
in interface ConceptDAO
ConceptDAO.getConceptDescriptionByUuid(java.lang.String)
public ConceptNameTag getConceptNameTagByUuid(java.lang.String uuid)
getConceptNameTagByUuid
in interface ConceptDAO
ConceptDAO.getConceptNameTagByUuid(java.lang.String)
public java.util.List<ConceptMap> getConceptsByConceptSource(ConceptSource conceptSource) throws DAOException
getConceptsByConceptSource
in interface ConceptDAO
DAOException
org.openmrs.api.db.ConceptDAO#getConceptsByConceptSourceName(java.lang.String,
java.lang.String)
public ConceptSource getConceptSourceByName(java.lang.String conceptSourceName) throws DAOException
getConceptSourceByName
in interface ConceptDAO
DAOException
ConceptDAO.getConceptSourceByName(java.lang.String)
public ConceptDatatype getSavedConceptDatatype(Concept concept)
ConceptDAO
getSavedConceptDatatype
in interface ConceptDAO
concept
- for which the conceptDatatype should be fetched
ConceptDAO.getSavedConceptDatatype(org.openmrs.Concept)
public ConceptName getSavedConceptName(ConceptName conceptName)
ConceptDAO
getSavedConceptName
in interface ConceptDAO
conceptName
- ConceptName to fetch from the database
ConceptDAO.getSavedConceptName(org.openmrs.ConceptName)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |