org.LexGrid.LexBIG.caCore.connection
Class DAOListFactory

java.lang.Object
  extended by org.LexGrid.LexBIG.caCore.connection.DAOListFactory

public class DAOListFactory
extends Object

Builds the List of DAOs associated with the underlying LexBIG installation. Also, a prefix-changing interceptor is added to each DAO to dynamically change the table prefix (to enable single or multi-db LexBIG mode).

Author:
Kevin Peterson

Field Summary
private  org.springframework.core.io.Resource configLocation
           
private  DBConnector connector
           
(package private)  List<LexEVSDAO> daoList
           
private  int resultCountPerQuery
           
 
Constructor Summary
DAOListFactory()
           
 
Method Summary
private  LexEVSDAO buildDAO(org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo connection, LexEVSDAO.DAOType type)
           
 void buildDAOs()
           
 org.springframework.core.io.Resource getConfigLocation()
           
 DBConnector getConnector()
           
 List<LexEVSDAO> getDaoList()
           
 int getResultCountPerQuery()
           
 void setConfigLocation(org.springframework.core.io.Resource configLocation)
           
 void setConnector(DBConnector connector)
           
 void setResultCountPerQuery(int resultCountPerQuery)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connector

private DBConnector connector

configLocation

private org.springframework.core.io.Resource configLocation

resultCountPerQuery

private int resultCountPerQuery

daoList

List<LexEVSDAO> daoList
Constructor Detail

DAOListFactory

public DAOListFactory()
Method Detail

buildDAOs

public void buildDAOs()
               throws Exception
Throws:
Exception

buildDAO

private LexEVSDAO buildDAO(org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo connection,
                           LexEVSDAO.DAOType type)
                    throws Exception
Throws:
Exception

getDaoList

public List<LexEVSDAO> getDaoList()

getConfigLocation

public org.springframework.core.io.Resource getConfigLocation()

setConfigLocation

public void setConfigLocation(org.springframework.core.io.Resource configLocation)

getConnector

public DBConnector getConnector()

setConnector

public void setConnector(DBConnector connector)

getResultCountPerQuery

public int getResultCountPerQuery()

setResultCountPerQuery

public void setResultCountPerQuery(int resultCountPerQuery)