org.LexGrid.LexBIG.caCore.connection
Class DAOListFactory

java.lang.Object
  extended by 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

Constructor Summary
DAOListFactory()
           
 
Method Summary
 void buildDAOs()
           
protected  LocalSessionFactoryBean buildSessionFactoryBean(javax.sql.DataSource datasource)
           
protected  javax.sql.DataSource createDataSource()
           
 Resource getConfigLocation()
           
 DBConnector getConnector()
           
 java.util.List<LexEVSDAO> getDaoList()
           
 int getResultCountPerQuery()
           
 void setConfigLocation(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
 

Constructor Detail

DAOListFactory

public DAOListFactory()
Method Detail

buildDAOs

public void buildDAOs()
               throws java.lang.Exception
Throws:
java.lang.Exception

createDataSource

protected javax.sql.DataSource createDataSource()

buildSessionFactoryBean

protected LocalSessionFactoryBean buildSessionFactoryBean(javax.sql.DataSource datasource)

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)