ca.infoway.messagebuilder.terminology.codeset.dao
Class HibernateCodeSetDao

Package class diagram package HibernateCodeSetDao
java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by ca.infoway.messagebuilder.terminology.codeset.dao.HibernateCodeSetDao
All Implemented Interfaces:
CodeSetDao, MutableCodeSetDao, org.springframework.beans.factory.InitializingBean

public class HibernateCodeSetDao
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements MutableCodeSetDao

The Class HibernateCodeSetDao. Implementation using Hibernate of the CodeSetDao interface

Author:
Intelliware Development

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

HibernateCodeSetDao

public HibernateCodeSetDao(org.hibernate.SessionFactory sessionFactory)

Instantiates a new hibernate code set dao.

Parameters:
sessionFactory - the session factory
Method Detail

selectCodedValuesByVocabularyDomain

public List<CodedValue> selectCodedValuesByVocabularyDomain(Class<?> vocabularyDomainType)

Select coded values by vocabulary domain.

Specified by:
selectCodedValuesByVocabularyDomain in interface CodeSetDao
Parameters:
vocabularyDomainType - the vocabulary domain type
Returns:
the list

selectValueSetsByCode

public List<ValueSetEntry> selectValueSetsByCode(Class<?> vocabularyDomainType,
                                                 String code)

Select value sets by code.

Specified by:
selectValueSetsByCode in interface CodeSetDao
Parameters:
vocabularyDomainType - the vocabulary domain type
code - the code
Returns:
the list

findValueByCodeSystem

public ValueSetEntry findValueByCodeSystem(Class<?> vocabularyDomainType,
                                           String code,
                                           String codeSystemOid)

Find value by code system.

Specified by:
findValueByCodeSystem in interface CodeSetDao
Parameters:
vocabularyDomainType - the vocabulary domain type
code - the code
codeSystemOid - the code system oid
Returns:
the value set entry

selectAllVocabularyDomains

public List<VocabularyDomain> selectAllVocabularyDomains()

Select all vocabulary domains.

Specified by:
selectAllVocabularyDomains in interface CodeSetDao
Returns:
the list

selectVocabularyDomain

public VocabularyDomain selectVocabularyDomain(String type)

Select vocabulary domain.

Specified by:
selectVocabularyDomain in interface CodeSetDao
Parameters:
type - the type
Returns:
the vocabulary domain

selectValueSetsByVocabularyDomain

public List<ValueSetEntry> selectValueSetsByVocabularyDomain(Class<?> vocabularyDomainType)

Select value sets by vocabulary domain.

Specified by:
selectValueSetsByVocabularyDomain in interface CodeSetDao
Parameters:
vocabularyDomainType - the vocabulary domain type
Returns:
the list

selectValueSetsByVocabularyDomain

public List<ValueSetEntry> selectValueSetsByVocabularyDomain(String domainName)

Select value sets by vocabulary domain.

Specified by:
selectValueSetsByVocabularyDomain in interface CodeSetDao
Parameters:
domainName - the vocabulary domain type
Returns:
the list

selectVocabularyDomains

public List<VocabularyDomain> selectVocabularyDomains(CodeSearchCriteria searchCriteria)

Select vocabulary domains.

Specified by:
selectVocabularyDomains in interface CodeSetDao
Parameters:
searchCriteria - the search criteria
Returns:
the list

getAllCodeSystems

public List<CodeSystem> getAllCodeSystems()

Gets the all code systems.

Specified by:
getAllCodeSystems in interface MutableCodeSetDao
Returns:
the all code systems

findCodeSystems

public List<CodeSystem> findCodeSystems(CodeSystemSearchCriteria searchCriteria)

Find code systems.

Specified by:
findCodeSystems in interface MutableCodeSetDao
Parameters:
searchCriteria - the search criteria
Returns:
the list

findCodeSystems

public List<CodeSystem> findCodeSystems(CodeSystemSearchCriteria searchCriteria,
                                        int startRow,
                                        int endRow)

Find code systems.

Specified by:
findCodeSystems in interface MutableCodeSetDao
Parameters:
searchCriteria - the search criteria
startRow - the start row
endRow - the end row
Returns:
the list

countCodeSystems

public int countCodeSystems(CodeSystemSearchCriteria searchCriteria)

Count code systems.

Specified by:
countCodeSystems in interface MutableCodeSetDao
Parameters:
searchCriteria - the search criteria
Returns:
the int

selectValueSetsByVocabularyDomain

public List<ValueSetEntry> selectValueSetsByVocabularyDomain(String jurisdiction,
                                                             VocabularyDomain vocabularyDomain)

Select value sets by vocabulary domain.

Specified by:
selectValueSetsByVocabularyDomain in interface CodeSetDao
Parameters:
jurisdiction - the jurisdiction code
vocabularyDomain - the vocabulary domain type
Returns:
the list

findCodedValue

public CodedValue findCodedValue(Code code)

Find coded value.

Specified by:
findCodedValue in interface CodeSetDao
Parameters:
code - the code
Returns:
the coded value

saveAll

public void saveAll(Collection<VocabularyDomain> vocabularyDomain)

Save all.

Specified by:
saveAll in interface MutableCodeSetDao
Parameters:
vocabularyDomain - the vocabulary domain

saveAllCodedValues

public void saveAllCodedValues(Collection<CodedValue> values)

Save all coded values.

Specified by:
saveAllCodedValues in interface MutableCodeSetDao
Parameters:
values - the values

findValueSetEntry

public ValueSetEntry findValueSetEntry(String valueSetName,
                                       Code code)

Find value set entry.

Specified by:
findValueSetEntry in interface MutableCodeSetDao
Parameters:
valueSetName - the value set name
code - the code
Returns:
the value set entry

save

public void save(ValueSetEntry valueSet)

Save.

Specified by:
save in interface MutableCodeSetDao
Parameters:
valueSet - the value set

findValueSet

public ValueSet findValueSet(String name)

Find value set.

Specified by:
findValueSet in interface MutableCodeSetDao
Parameters:
name - the name
Returns:
the value set

saveValueSet

public void saveValueSet(ValueSet valueSet)

Save value set.

Specified by:
saveValueSet in interface MutableCodeSetDao
Parameters:
valueSet - the value set

findCodeSystem

public CodeSystem findCodeSystem(String oid)

Find code system.

Specified by:
findCodeSystem in interface MutableCodeSetDao
Parameters:
oid - the oid
Returns:
the code system


Copyright © 2013. All Rights Reserved.