org.lexgrid.loader.rrf.staging
Class JdbcMrconsoStagingDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.lexgrid.loader.rrf.staging.JdbcMrconsoStagingDao
All Implemented Interfaces:
MrconsoStagingDao, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
MetaJdbcMrconsoStagingDao

public class JdbcMrconsoStagingDao
extends org.springframework.jdbc.core.support.JdbcDaoSupport
implements MrconsoStagingDao

The Class JdbcMrconsoStagingDao.

Author:
Kevin Peterson

Field Summary
protected  java.lang.String getCodeFromAui
          The get code from aui.
protected  java.lang.String getCodeFromCuiAndAui
          The get code from cui and aui.
protected  java.lang.String getCodesFromCui
           
protected  java.lang.String getCodesFromCuiAndSab
          The get codes from cui and sab.
protected  java.lang.String getCuiFromAui
           
protected  java.lang.String getCuiFromAuiAndSab
          The get cui from aui and sab.
protected  java.lang.String getCuisFromCode
           
protected  StatusTrackingLogger logger
          The log.
protected  java.lang.String PREFIX_PLACEHOLDER
          The PREFI x_ placeholder.
protected  java.lang.String TABLENAME_PLACEHOLDER
          The TABLENAM e_ placeholder.
 
Constructor Summary
JdbcMrconsoStagingDao()
           
 
Method Summary
 CodeCodingSchemePair getCodeAndCodingScheme(java.lang.String cui, java.lang.String aui)
          Gets the code and coding scheme.
 CodeSabPair getCodeAndSab(java.lang.String cui, java.lang.String aui)
          Gets the code and sab.
 java.lang.String getCodeFromAui(java.lang.String aui)
          Gets the code from aui.
 java.util.List<java.lang.String> getCodes(java.lang.String cui, java.lang.String sab)
          Gets the codes.
 java.util.List<java.lang.String> getCodesFromCui(java.lang.String cui)
           
 java.lang.String getCuiFromAui(java.lang.String aui)
           
 java.lang.String getCuiFromAuiAndSab(java.lang.String aui, java.lang.String sab)
          Gets the cui from aui and sab.
 java.util.List<java.lang.String> getCuisFromCode(java.lang.String code)
           
 MrsabUtility getMrsabUtility()
          Gets the mrsab utility.
 java.lang.String getPrefix()
          Gets the prefix.
 java.lang.String getTableName()
          Gets the table name.
 void setMrsabUtility(MrsabUtility mrsabUtility)
          Sets the mrsab utility.
protected  java.lang.String setPlaceholders(java.lang.String sql)
          Sets the placeholders.
 void setPrefix(java.lang.String prefix)
          Sets the prefix.
 void setTableName(java.lang.String tableName)
          Sets the table name.
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
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
 

Field Detail

logger

protected StatusTrackingLogger logger
The log.


PREFIX_PLACEHOLDER

protected final java.lang.String PREFIX_PLACEHOLDER
The PREFI x_ placeholder.

See Also:
Constant Field Values

TABLENAME_PLACEHOLDER

protected final java.lang.String TABLENAME_PLACEHOLDER
The TABLENAM e_ placeholder.

See Also:
Constant Field Values

getCodeFromCuiAndAui

protected java.lang.String getCodeFromCuiAndAui
The get code from cui and aui.


getCodesFromCuiAndSab

protected java.lang.String getCodesFromCuiAndSab
The get codes from cui and sab.


getCodeFromAui

protected java.lang.String getCodeFromAui
The get code from aui.


getCuiFromAuiAndSab

protected java.lang.String getCuiFromAuiAndSab
The get cui from aui and sab.


getCuiFromAui

protected java.lang.String getCuiFromAui

getCuisFromCode

protected java.lang.String getCuisFromCode

getCodesFromCui

protected java.lang.String getCodesFromCui
Constructor Detail

JdbcMrconsoStagingDao

public JdbcMrconsoStagingDao()
Method Detail

getCodeAndSab

public CodeSabPair getCodeAndSab(java.lang.String cui,
                                 java.lang.String aui)
Description copied from interface: MrconsoStagingDao
Gets the code and sab.

Specified by:
getCodeAndSab in interface MrconsoStagingDao
Parameters:
cui - the cui
aui - the aui
Returns:
the code and sab

getCodes

public java.util.List<java.lang.String> getCodes(java.lang.String cui,
                                                 java.lang.String sab)
Description copied from interface: MrconsoStagingDao
Gets the codes.

Specified by:
getCodes in interface MrconsoStagingDao
Parameters:
cui - the cui
sab - the sab
Returns:
the codes

getCodeFromAui

public java.lang.String getCodeFromAui(java.lang.String aui)
Description copied from interface: MrconsoStagingDao
Gets the code from aui.

Specified by:
getCodeFromAui in interface MrconsoStagingDao
Parameters:
aui - the aui
Returns:
the code from aui

getCodesFromCui

public java.util.List<java.lang.String> getCodesFromCui(java.lang.String cui)
Specified by:
getCodesFromCui in interface MrconsoStagingDao

getCuiFromAuiAndSab

public java.lang.String getCuiFromAuiAndSab(java.lang.String aui,
                                            java.lang.String sab)
Description copied from interface: MrconsoStagingDao
Gets the cui from aui and sab.

Specified by:
getCuiFromAuiAndSab in interface MrconsoStagingDao
Parameters:
aui - the aui
sab - the sab
Returns:
the cui from aui and sab

getCuiFromAui

public java.lang.String getCuiFromAui(java.lang.String aui)
Specified by:
getCuiFromAui in interface MrconsoStagingDao

getCodeAndCodingScheme

public CodeCodingSchemePair getCodeAndCodingScheme(java.lang.String cui,
                                                   java.lang.String aui)
Description copied from interface: MrconsoStagingDao
Gets the code and coding scheme.

Specified by:
getCodeAndCodingScheme in interface MrconsoStagingDao
Parameters:
cui - the cui
aui - the aui
Returns:
the code and coding scheme

getCuisFromCode

public java.util.List<java.lang.String> getCuisFromCode(java.lang.String code)
Specified by:
getCuisFromCode in interface MrconsoStagingDao

setPlaceholders

protected java.lang.String setPlaceholders(java.lang.String sql)
Sets the placeholders.

Parameters:
sql - the sql
Returns:
the string

getMrsabUtility

public MrsabUtility getMrsabUtility()
Gets the mrsab utility.

Returns:
the mrsab utility

setMrsabUtility

public void setMrsabUtility(MrsabUtility mrsabUtility)
Sets the mrsab utility.

Parameters:
mrsabUtility - the new mrsab utility

getPrefix

public java.lang.String getPrefix()
Gets the prefix.

Returns:
the prefix

setPrefix

public void setPrefix(java.lang.String prefix)
Sets the prefix.

Parameters:
prefix - the new prefix

getTableName

public java.lang.String getTableName()
Gets the table name.

Returns:
the table name

setTableName

public void setTableName(java.lang.String tableName)
Sets the table name.

Parameters:
tableName - the new table name

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.