org.openmrs.api.db.hibernate
Class HibernateConceptDAO

java.lang.Object
  extended by org.openmrs.api.db.hibernate.HibernateConceptDAO
All Implemented Interfaces:
ConceptDAO

public class HibernateConceptDAO
extends java.lang.Object
implements ConceptDAO

The Hibernate class for Concepts, Drugs, and related classes.

Use the ConceptService to access these methods

See Also:
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

log

protected final org.apache.commons.logging.Log log
Constructor Detail

HibernateConceptDAO

public HibernateConceptDAO()
Method Detail

setSessionFactory

public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Sets the session factory

Parameters:
sessionFactory -

getConceptComplex

public ConceptComplex getConceptComplex(java.lang.Integer conceptId)
Description copied from interface: ConceptDAO
Get a ConceptComplex. The Concept.getDatatype() is "Complex" and the Concept.getHandler() is the class name for the ComplexObsHandler key associated with this ConceptComplex.

Specified by:
getConceptComplex in interface ConceptDAO
Returns:
the ConceptComplex
See Also:
ConceptDAO.getConceptComplex(java.lang.Integer)

saveConcept

public Concept saveConcept(Concept concept)
                    throws DAOException
Specified by:
saveConcept in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.saveConcept(org.openmrs.Concept)

purgeConcept

public void purgeConcept(Concept concept)
                  throws DAOException
Specified by:
purgeConcept in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.purgeConcept(org.openmrs.Concept)

getConcept

public Concept getConcept(java.lang.Integer conceptId)
                   throws DAOException
Specified by:
getConcept in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getConcept(java.lang.Integer)

getConceptName

public ConceptName getConceptName(java.lang.Integer conceptNameId)
                           throws DAOException
Specified by:
getConceptName in interface ConceptDAO
Returns:
The ConceptName matching the specified conceptNameId
Throws:
DAOException
See Also:
ConceptDAO.getConceptName(java.lang.Integer)

getConceptAnswer

public ConceptAnswer getConceptAnswer(java.lang.Integer conceptAnswerId)
                               throws DAOException
Specified by:
getConceptAnswer in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getConceptAnswer(java.lang.Integer)

getAllConcepts

public java.util.List<Concept> getAllConcepts(java.lang.String sortBy,
                                              boolean asc,
                                              boolean includeRetired)
                                       throws DAOException
Specified by:
getAllConcepts in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getAllConcepts(java.lang.String, boolean, boolean)

saveDrug

public Drug saveDrug(Drug drug)
              throws DAOException
Specified by:
saveDrug in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.saveDrug(org.openmrs.Drug)

getDrug

public Drug getDrug(java.lang.Integer drugId)
             throws DAOException
Specified by:
getDrug in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getDrug(java.lang.Integer)

getDrugs

public java.util.List<Drug> getDrugs(java.lang.String drugName,
                                     Concept concept,
                                     boolean includeRetired)
                              throws DAOException
Description copied from interface: ConceptDAO
DAO for retrieving a list of drugs based on the following criteria

Specified by:
getDrugs in interface ConceptDAO
Returns:
List
Throws:
DAOException
See Also:
ConceptDAO.getDrugs(java.lang.String, org.openmrs.Concept, boolean)

getDrugs

public java.util.List<Drug> getDrugs(java.lang.String phrase)
                              throws DAOException
Specified by:
getDrugs in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getDrugs(java.lang.String)

getConceptClass

public ConceptClass getConceptClass(java.lang.Integer i)
                             throws DAOException
Specified by:
getConceptClass in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getConceptClass(java.lang.Integer)

getConceptClasses

public java.util.List<ConceptClass> getConceptClasses(java.lang.String name)
                                               throws DAOException
Specified by:
getConceptClasses in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getConceptClasses(java.lang.String)

getAllConceptClasses

public java.util.List<ConceptClass> getAllConceptClasses(boolean includeRetired)
                                                  throws DAOException
Specified by:
getAllConceptClasses in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getAllConceptClasses(boolean)

saveConceptClass

public ConceptClass saveConceptClass(ConceptClass cc)
                              throws DAOException
Specified by:
saveConceptClass in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.saveConceptClass(org.openmrs.ConceptClass)

purgeConceptClass

public void purgeConceptClass(ConceptClass cc)
                       throws DAOException
Specified by:
purgeConceptClass in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.purgeConceptClass(org.openmrs.ConceptClass)

getConceptDatatype

public ConceptDatatype getConceptDatatype(java.lang.Integer i)
Specified by:
getConceptDatatype in interface ConceptDAO
See Also:
ConceptDAO.getConceptDatatype(java.lang.Integer)

getAllConceptDatatypes

public java.util.List<ConceptDatatype> getAllConceptDatatypes(boolean includeRetired)
                                                       throws DAOException
Specified by:
getAllConceptDatatypes in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getAllConceptDatatypes(boolean)

getConceptDatatypes

public java.util.List<ConceptDatatype> getConceptDatatypes(java.lang.String name)
                                                    throws DAOException
Specified by:
getConceptDatatypes in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getConceptDatatypes(java.lang.String)

getConceptDatatypeByName

public ConceptDatatype getConceptDatatypeByName(java.lang.String name)
                                         throws DAOException
Specified by:
getConceptDatatypeByName in interface ConceptDAO
Returns:
the ConceptDatatype that matches name exactly or null if one does not exist.
Throws:
DAOException
See Also:
ConceptDAO.getConceptDatatypeByName(String)

saveConceptDatatype

public ConceptDatatype saveConceptDatatype(ConceptDatatype cd)
                                    throws DAOException
Specified by:
saveConceptDatatype in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.saveConceptDatatype(org.openmrs.ConceptDatatype)

purgeConceptDatatype

public void purgeConceptDatatype(ConceptDatatype cd)
                          throws DAOException
Specified by:
purgeConceptDatatype in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.purgeConceptDatatype(org.openmrs.ConceptDatatype)

getConceptNumeric

public ConceptNumeric getConceptNumeric(java.lang.Integer i)
Specified by:
getConceptNumeric in interface ConceptDAO
See Also:
ConceptDAO.getConceptNumeric(java.lang.Integer)

getConcepts

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
Description copied from interface: ConceptDAO
Returns a list of concepts based on the search criteria

Specified by:
getConcepts in interface ConceptDAO
searchOnPhrase - This puts wildcard characters around the concept name search criteria
Returns:
List
Throws:
DAOException
See Also:
ConceptDAO.getConcepts(java.lang.String, java.util.Locale, boolean, java.util.List, java.util.List)

getConceptWords

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
Specified by:
getConceptWords in interface ConceptDAO
Throws:
DAOException
See Also:
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)

getConceptsByAnswer

public java.util.List<Concept> getConceptsByAnswer(Concept concept)
gets questions for the given answer concept

Specified by:
getConceptsByAnswer in interface ConceptDAO
See Also:
ConceptDAO.getConceptsByAnswer(org.openmrs.Concept)

getPrevConcept

public Concept getPrevConcept(Concept c)
Specified by:
getPrevConcept in interface ConceptDAO
See Also:
ConceptDAO.getPrevConcept(org.openmrs.Concept)

getNextConcept

public Concept getNextConcept(Concept c)
Specified by:
getNextConcept in interface ConceptDAO
See Also:
ConceptDAO.getNextConcept(org.openmrs.Concept)

getConceptsWithDrugsInFormulary

public java.util.List<Concept> getConceptsWithDrugsInFormulary()
Specified by:
getConceptsWithDrugsInFormulary in interface ConceptDAO
See Also:
ConceptDAO.getConceptsWithDrugsInFormulary()

purgeDrug

public void purgeDrug(Drug drug)
               throws DAOException
Specified by:
purgeDrug in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.purgeDrug(org.openmrs.Drug)

updateConceptWord

public void updateConceptWord(Concept concept)
                       throws DAOException
Specified by:
updateConceptWord in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.updateConceptWord(org.openmrs.Concept)

saveConceptProposal

public ConceptProposal saveConceptProposal(ConceptProposal cp)
                                    throws DAOException
Specified by:
saveConceptProposal in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.saveConceptProposal(org.openmrs.ConceptProposal)

purgeConceptProposal

public void purgeConceptProposal(ConceptProposal cp)
                          throws DAOException
Specified by:
purgeConceptProposal in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.purgeConceptProposal(org.openmrs.ConceptProposal)

getAllConceptProposals

public java.util.List<ConceptProposal> getAllConceptProposals(boolean includeCompleted)
                                                       throws DAOException
Specified by:
getAllConceptProposals in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getAllConceptProposals(boolean)

getConceptProposal

public ConceptProposal getConceptProposal(java.lang.Integer conceptProposalId)
                                   throws DAOException
Specified by:
getConceptProposal in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getConceptProposal(java.lang.Integer)

getConceptProposals

public java.util.List<ConceptProposal> getConceptProposals(java.lang.String text)
                                                    throws DAOException
Specified by:
getConceptProposals in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getConceptProposals(java.lang.String)

getProposedConcepts

public java.util.List<Concept> getProposedConcepts(java.lang.String text)
                                            throws DAOException
Specified by:
getProposedConcepts in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getProposedConcepts(java.lang.String)

getConceptSetsByConcept

public java.util.List<ConceptSet> getConceptSetsByConcept(Concept concept)
Specified by:
getConceptSetsByConcept in interface ConceptDAO
See Also:
ConceptDAO.getConceptSetsByConcept(org.openmrs.Concept)

getSetsContainingConcept

public java.util.List<ConceptSet> getSetsContainingConcept(Concept concept)
Specified by:
getSetsContainingConcept in interface ConceptDAO
See Also:
ConceptDAO.getSetsContainingConcept(org.openmrs.Concept)

updateConceptSetDerived

public void updateConceptSetDerived()
                             throws DAOException
Specified by:
updateConceptSetDerived in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.updateConceptSetDerived()

updateConceptSetDerived

public void updateConceptSetDerived(Concept concept)
                             throws DAOException
Specified by:
updateConceptSetDerived in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.updateConceptSetDerived(org.openmrs.Concept)

getLocalesOfConceptNames

public java.util.Set<java.util.Locale> getLocalesOfConceptNames()
Specified by:
getLocalesOfConceptNames in interface ConceptDAO
See Also:
ConceptDAO.getLocalesOfConceptNames()

getConceptNameTag

public ConceptNameTag getConceptNameTag(java.lang.Integer i)
Specified by:
getConceptNameTag in interface ConceptDAO
See Also:
ConceptDAO.getConceptNameTag(java.lang.Integer)

getConceptNameTagByName

public ConceptNameTag getConceptNameTagByName(java.lang.String name)
Specified by:
getConceptNameTagByName in interface ConceptDAO
See Also:
ConceptDAO.getConceptNameTagByName(java.lang.String)

getAllConceptNameTags

public java.util.List<ConceptNameTag> getAllConceptNameTags()
Specified by:
getAllConceptNameTags in interface ConceptDAO
See Also:
ConceptDAO.getAllConceptNameTags()

getConceptSource

public ConceptSource getConceptSource(java.lang.Integer conceptSourceId)
Specified by:
getConceptSource in interface ConceptDAO
See Also:
ConceptDAO.getConceptSource(java.lang.Integer)

getAllConceptSources

public java.util.List<ConceptSource> getAllConceptSources()
Specified by:
getAllConceptSources in interface ConceptDAO
See Also:
ConceptDAO.getAllConceptSources()

deleteConceptSource

public ConceptSource deleteConceptSource(ConceptSource cs)
                                  throws DAOException
Specified by:
deleteConceptSource in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.deleteConceptSource(org.openmrs.ConceptSource)

saveConceptSource

public ConceptSource saveConceptSource(ConceptSource conceptSource)
                                throws DAOException
Specified by:
saveConceptSource in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.saveConceptSource(org.openmrs.ConceptSource)

saveConceptNameTag

public ConceptNameTag saveConceptNameTag(ConceptNameTag nameTag)
Specified by:
saveConceptNameTag in interface ConceptDAO
See Also:
ConceptDAO.saveConceptNameTag(org.openmrs.ConceptNameTag)

getMinConceptId

public java.lang.Integer getMinConceptId()
See Also:
ConceptDAO.getMaxConceptId()

getMaxConceptId

public java.lang.Integer getMaxConceptId()
Specified by:
getMaxConceptId in interface ConceptDAO
See Also:
ConceptDAO.getMaxConceptId()

conceptIterator

public java.util.Iterator<Concept> conceptIterator()
Specified by:
conceptIterator in interface ConceptDAO
See Also:
ConceptDAO.conceptIterator()

getConceptByMapping

public Concept getConceptByMapping(java.lang.String conceptCode,
                                   java.lang.String mappingCode)
Specified by:
getConceptByMapping in interface ConceptDAO
See Also:
ConceptDAO.getConceptByMapping(java.lang.String, java.lang.String)

getConceptByUuid

public Concept getConceptByUuid(java.lang.String uuid)
Description copied from interface: ConceptDAO
Auto generated method comment

Specified by:
getConceptByUuid in interface ConceptDAO
Returns:
See Also:
ConceptDAO.getConceptByUuid(java.lang.String)

getConceptClassByUuid

public ConceptClass getConceptClassByUuid(java.lang.String uuid)
Description copied from interface: ConceptDAO
Auto generated method comment

Specified by:
getConceptClassByUuid in interface ConceptDAO
Returns:
See Also:
ConceptDAO.getConceptClassByUuid(java.lang.String)

getConceptAnswerByUuid

public ConceptAnswer getConceptAnswerByUuid(java.lang.String uuid)
Specified by:
getConceptAnswerByUuid in interface ConceptDAO

getConceptDerivedByUuid

public ConceptDerived getConceptDerivedByUuid(java.lang.String uuid)
Specified by:
getConceptDerivedByUuid in interface ConceptDAO

getConceptNameByUuid

public ConceptName getConceptNameByUuid(java.lang.String uuid)
Specified by:
getConceptNameByUuid in interface ConceptDAO

getConceptSetByUuid

public ConceptSet getConceptSetByUuid(java.lang.String uuid)
Specified by:
getConceptSetByUuid in interface ConceptDAO

getConceptSetDerivedByUuid

public ConceptSetDerived getConceptSetDerivedByUuid(java.lang.String uuid)
Specified by:
getConceptSetDerivedByUuid in interface ConceptDAO

getConceptSourceByUuid

public ConceptSource getConceptSourceByUuid(java.lang.String uuid)
Specified by:
getConceptSourceByUuid in interface ConceptDAO

getConceptWordByUuid

public ConceptWord getConceptWordByUuid(java.lang.String uuid)
Specified by:
getConceptWordByUuid in interface ConceptDAO

getConceptDatatypeByUuid

public ConceptDatatype getConceptDatatypeByUuid(java.lang.String uuid)
Description copied from interface: ConceptDAO
Auto generated method comment

Specified by:
getConceptDatatypeByUuid in interface ConceptDAO
Returns:
See Also:
ConceptDAO.getConceptDatatypeByUuid(java.lang.String)

getConceptNumericByUuid

public ConceptNumeric getConceptNumericByUuid(java.lang.String uuid)
Description copied from interface: ConceptDAO
Auto generated method comment

Specified by:
getConceptNumericByUuid in interface ConceptDAO
Returns:
See Also:
ConceptDAO.getConceptNumericByUuid(java.lang.String)

getConceptProposalByUuid

public ConceptProposal getConceptProposalByUuid(java.lang.String uuid)
Description copied from interface: ConceptDAO
Auto generated method comment

Specified by:
getConceptProposalByUuid in interface ConceptDAO
Returns:
See Also:
ConceptDAO.getConceptProposalByUuid(java.lang.String)

getDrugByUuid

public Drug getDrugByUuid(java.lang.String uuid)
Description copied from interface: ConceptDAO
Auto generated method comment

Specified by:
getDrugByUuid in interface ConceptDAO
Returns:
See Also:
ConceptDAO.getDrugByUuid(java.lang.String)

getDrugIngredientByUuid

public DrugIngredient getDrugIngredientByUuid(java.lang.String uuid)
Specified by:
getDrugIngredientByUuid in interface ConceptDAO

getConceptUuids

public java.util.Map<java.lang.Integer,java.lang.String> getConceptUuids()
Specified by:
getConceptUuids in interface ConceptDAO
See Also:
ConceptDAO.getConceptUuids()

getConceptDescriptionByUuid

public ConceptDescription getConceptDescriptionByUuid(java.lang.String uuid)
Specified by:
getConceptDescriptionByUuid in interface ConceptDAO
See Also:
ConceptDAO.getConceptDescriptionByUuid(java.lang.String)

getConceptNameTagByUuid

public ConceptNameTag getConceptNameTagByUuid(java.lang.String uuid)
Specified by:
getConceptNameTagByUuid in interface ConceptDAO
See Also:
ConceptDAO.getConceptNameTagByUuid(java.lang.String)

getConceptsByConceptSource

public java.util.List<ConceptMap> getConceptsByConceptSource(ConceptSource conceptSource)
                                                      throws DAOException
Specified by:
getConceptsByConceptSource in interface ConceptDAO
Throws:
DAOException
See Also:
org.openmrs.api.db.ConceptDAO#getConceptsByConceptSourceName(java.lang.String, java.lang.String)

getConceptSourceByName

public ConceptSource getConceptSourceByName(java.lang.String conceptSourceName)
                                     throws DAOException
Specified by:
getConceptSourceByName in interface ConceptDAO
Throws:
DAOException
See Also:
ConceptDAO.getConceptSourceByName(java.lang.String)

getSavedConceptDatatype

public ConceptDatatype getSavedConceptDatatype(Concept concept)
Description copied from interface: ConceptDAO
Gets the value of conceptDatatype currently saved in the database for the given concept, bypassing any caches. This is used prior to saving an concept so that we can change the obs if need be

Specified by:
getSavedConceptDatatype in interface ConceptDAO
Parameters:
concept - for which the conceptDatatype should be fetched
Returns:
the conceptDatatype currently in the database for this concept
See Also:
ConceptDAO.getSavedConceptDatatype(org.openmrs.Concept)

getSavedConceptName

public ConceptName getSavedConceptName(ConceptName conceptName)
Description copied from interface: ConceptDAO
Gets the persisted copy of the conceptName currently saved in the database for the given conceptName, bypassing any caches. This is used prior to saving an concept so that we can change the obs if need be or avoid breaking any obs referencing it.

Specified by:
getSavedConceptName in interface ConceptDAO
Parameters:
conceptName - ConceptName to fetch from the database
Returns:
the persisted copy of the conceptName currently saved in the database for this conceptName
See Also:
ConceptDAO.getSavedConceptName(org.openmrs.ConceptName)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change