org.LexGrid.LexBIG.caCore.dao.orm.selectionStrategy
Class CodingSchemeSelectionStrategy

java.lang.Object
  extended by org.LexGrid.LexBIG.caCore.dao.orm.selectionStrategy.CodingSchemeSelectionStrategy
All Implemented Interfaces:
DAOSelectionStrategy

public class CodingSchemeSelectionStrategy
extends Object
implements DAOSelectionStrategy


Field Summary
private  DBConnector dbConnector
           
private static org.apache.log4j.Logger log
           
private static String PRODUCTION_TAG
           
 
Constructor Summary
CodingSchemeSelectionStrategy()
           
 
Method Summary
private  boolean containsTag(org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeTagList tagList, String tagName)
           
 List<LexEVSDAO> getDAOList(List<LexEVSDAO> daoList, gov.nih.nci.system.dao.Request request)
          Given a Request, Determine the DAOs to use.
 List<LexEVSDAO> getDAOList(List<LexEVSDAO> daoList, gov.nih.nci.system.dao.Request request, QueryOptions queryOptions)
          Given a Request, Determine the DAOs to use (with SecurityTokens).
 DBConnector getDbConnector()
           
private  List<LexEVSDAO> restrictToCodingScheme(List<LexEVSDAO> list, String csName, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag tagOrVersion)
           
 void setDbConnector(DBConnector dbConnector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRODUCTION_TAG

private static String PRODUCTION_TAG

dbConnector

private DBConnector dbConnector

log

private static org.apache.log4j.Logger log
Constructor Detail

CodingSchemeSelectionStrategy

public CodingSchemeSelectionStrategy()
Method Detail

getDAOList

public List<LexEVSDAO> getDAOList(List<LexEVSDAO> daoList,
                                  gov.nih.nci.system.dao.Request request)
Description copied from interface: DAOSelectionStrategy
Given a Request, Determine the DAOs to use.

Specified by:
getDAOList in interface DAOSelectionStrategy
Returns:
the list of usable DAOs.

getDAOList

public List<LexEVSDAO> getDAOList(List<LexEVSDAO> daoList,
                                  gov.nih.nci.system.dao.Request request,
                                  QueryOptions queryOptions)
                           throws SelectionStrategyException
Description copied from interface: DAOSelectionStrategy
Given a Request, Determine the DAOs to use (with SecurityTokens).

Specified by:
getDAOList in interface DAOSelectionStrategy
Returns:
the list of usable DAOs.
Throws:
SelectionStrategyException

restrictToCodingScheme

private List<LexEVSDAO> restrictToCodingScheme(List<LexEVSDAO> list,
                                               String csName,
                                               org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag tagOrVersion)
                                        throws SelectionStrategyException
Throws:
SelectionStrategyException

containsTag

private boolean containsTag(org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeTagList tagList,
                            String tagName)

getDbConnector

public DBConnector getDbConnector()

setDbConnector

public void setDbConnector(DBConnector dbConnector)