org.LexGrid.LexBIG.caCore.connection
Class DAOListFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connector
private DBConnector connector
configLocation
private org.springframework.core.io.Resource configLocation
resultCountPerQuery
private int resultCountPerQuery
daoList
List<LexEVSDAO> daoList
DAOListFactory
public DAOListFactory()
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)