org.LexGrid.LexBIG.caCore.connection
Class DAOListFactory
java.lang.Object
org.LexGrid.LexBIG.caCore.connection.DAOListFactory
public class DAOListFactory
- extends java.lang.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 |
DAOListFactory
public DAOListFactory()
buildDAOs
public void buildDAOs()
throws java.lang.Exception
- Throws:
java.lang.Exception
buildSessionFactoryBean
protected LocalSessionFactoryBean buildSessionFactoryBean(javax.sql.DataSource datasource)
canUseSingleDatasource
protected boolean canUseSingleDatasource(java.util.List<SQLConnectionInfo> connections)
createDataSource
protected javax.sql.DataSource createDataSource(SQLConnectionInfo connection)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDaoList
public java.util.List<LexEVSDAO> getDaoList()
getConfigLocation
public Resource getConfigLocation()
setConfigLocation
public void setConfigLocation(Resource configLocation)
getConnector
public DBConnector getConnector()
setConnector
public void setConnector(DBConnector connector)
getResultCountPerQuery
public int getResultCountPerQuery()
setResultCountPerQuery
public void setResultCountPerQuery(int resultCountPerQuery)