|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
ca.infoway.messagebuilder.terminology.codeset.dao.HibernateCodeSetDao
public class HibernateCodeSetDao
The Class HibernateCodeSetDao. Implementation using Hibernate of the CodeSetDao interface
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateCodeSetDao(org.hibernate.SessionFactory sessionFactory)
Instantiates a new hibernate code set dao. |
Method Summary | |
---|---|
int |
countCodeSystems(CodeSystemSearchCriteria searchCriteria)
Count code systems. |
CodedValue |
findCodedValue(Code code)
Find coded value. |
CodeSystem |
findCodeSystem(String oid)
Find code system. |
List<CodeSystem> |
findCodeSystems(CodeSystemSearchCriteria searchCriteria)
Find code systems. |
List<CodeSystem> |
findCodeSystems(CodeSystemSearchCriteria searchCriteria,
int startRow,
int endRow)
Find code systems. |
ValueSetEntry |
findValueByCodeSystem(Class<?> vocabularyDomainType,
String code,
String codeSystemOid)
Find value by code system. |
ValueSet |
findValueSet(String name)
Find value set. |
ValueSetEntry |
findValueSetEntry(String valueSetName,
Code code)
Find value set entry. |
List<CodeSystem> |
getAllCodeSystems()
Gets the all code systems. |
void |
save(ValueSetEntry valueSet)
Save. |
void |
saveAll(Collection<VocabularyDomain> vocabularyDomain)
Save all. |
void |
saveAllCodedValues(Collection<CodedValue> values)
Save all coded values. |
void |
saveValueSet(ValueSet valueSet)
Save value set. |
List<VocabularyDomain> |
selectAllVocabularyDomains()
Select all vocabulary domains. |
List<CodedValue> |
selectCodedValuesByVocabularyDomain(Class<?> vocabularyDomainType)
Select coded values by vocabulary domain. |
List<ValueSetEntry> |
selectValueSetsByCode(Class<?> vocabularyDomainType,
String code)
Select value sets by code. |
List<ValueSetEntry> |
selectValueSetsByVocabularyDomain(Class<?> vocabularyDomainType)
Select value sets by vocabulary domain. |
List<ValueSetEntry> |
selectValueSetsByVocabularyDomain(String domainName)
Select value sets by vocabulary domain. |
List<ValueSetEntry> |
selectValueSetsByVocabularyDomain(String jurisdiction,
VocabularyDomain vocabularyDomain)
Select value sets by vocabulary domain. |
VocabularyDomain |
selectVocabularyDomain(String type)
Select vocabulary domain. |
List<VocabularyDomain> |
selectVocabularyDomains(CodeSearchCriteria searchCriteria)
Select vocabulary domains. |
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateCodeSetDao(org.hibernate.SessionFactory sessionFactory)
Instantiates a new hibernate code set dao.
sessionFactory
- the session factoryMethod Detail |
---|
public List<CodedValue> selectCodedValuesByVocabularyDomain(Class<?> vocabularyDomainType)
Select coded values by vocabulary domain.
selectCodedValuesByVocabularyDomain
in interface CodeSetDao
vocabularyDomainType
- the vocabulary domain type
public List<ValueSetEntry> selectValueSetsByCode(Class<?> vocabularyDomainType, String code)
Select value sets by code.
selectValueSetsByCode
in interface CodeSetDao
vocabularyDomainType
- the vocabulary domain typecode
- the code
public ValueSetEntry findValueByCodeSystem(Class<?> vocabularyDomainType, String code, String codeSystemOid)
Find value by code system.
findValueByCodeSystem
in interface CodeSetDao
vocabularyDomainType
- the vocabulary domain typecode
- the codecodeSystemOid
- the code system oid
public List<VocabularyDomain> selectAllVocabularyDomains()
Select all vocabulary domains.
selectAllVocabularyDomains
in interface CodeSetDao
public VocabularyDomain selectVocabularyDomain(String type)
Select vocabulary domain.
selectVocabularyDomain
in interface CodeSetDao
type
- the type
public List<ValueSetEntry> selectValueSetsByVocabularyDomain(Class<?> vocabularyDomainType)
Select value sets by vocabulary domain.
selectValueSetsByVocabularyDomain
in interface CodeSetDao
vocabularyDomainType
- the vocabulary domain type
public List<ValueSetEntry> selectValueSetsByVocabularyDomain(String domainName)
Select value sets by vocabulary domain.
selectValueSetsByVocabularyDomain
in interface CodeSetDao
domainName
- the vocabulary domain type
public List<VocabularyDomain> selectVocabularyDomains(CodeSearchCriteria searchCriteria)
Select vocabulary domains.
selectVocabularyDomains
in interface CodeSetDao
searchCriteria
- the search criteria
public List<CodeSystem> getAllCodeSystems()
Gets the all code systems.
getAllCodeSystems
in interface MutableCodeSetDao
public List<CodeSystem> findCodeSystems(CodeSystemSearchCriteria searchCriteria)
Find code systems.
findCodeSystems
in interface MutableCodeSetDao
searchCriteria
- the search criteria
public List<CodeSystem> findCodeSystems(CodeSystemSearchCriteria searchCriteria, int startRow, int endRow)
Find code systems.
findCodeSystems
in interface MutableCodeSetDao
searchCriteria
- the search criteriastartRow
- the start rowendRow
- the end row
public int countCodeSystems(CodeSystemSearchCriteria searchCriteria)
Count code systems.
countCodeSystems
in interface MutableCodeSetDao
searchCriteria
- the search criteria
public List<ValueSetEntry> selectValueSetsByVocabularyDomain(String jurisdiction, VocabularyDomain vocabularyDomain)
Select value sets by vocabulary domain.
selectValueSetsByVocabularyDomain
in interface CodeSetDao
jurisdiction
- the jurisdiction codevocabularyDomain
- the vocabulary domain type
public CodedValue findCodedValue(Code code)
Find coded value.
findCodedValue
in interface CodeSetDao
code
- the code
public void saveAll(Collection<VocabularyDomain> vocabularyDomain)
Save all.
saveAll
in interface MutableCodeSetDao
vocabularyDomain
- the vocabulary domainpublic void saveAllCodedValues(Collection<CodedValue> values)
Save all coded values.
saveAllCodedValues
in interface MutableCodeSetDao
values
- the valuespublic ValueSetEntry findValueSetEntry(String valueSetName, Code code)
Find value set entry.
findValueSetEntry
in interface MutableCodeSetDao
valueSetName
- the value set namecode
- the code
public void save(ValueSetEntry valueSet)
Save.
save
in interface MutableCodeSetDao
valueSet
- the value setpublic ValueSet findValueSet(String name)
Find value set.
findValueSet
in interface MutableCodeSetDao
name
- the name
public void saveValueSet(ValueSet valueSet)
Save value set.
saveValueSet
in interface MutableCodeSetDao
valueSet
- the value setpublic CodeSystem findCodeSystem(String oid)
Find code system.
findCodeSystem
in interface MutableCodeSetDao
oid
- the oid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |