uk.ac.ebi.intact.persistence
Class DAOFactory

java.lang.Object
  |
  +--uk.ac.ebi.intact.persistence.DAOFactory

public class DAOFactory
extends java.lang.Object

This class is a factory for providing data sources from which a data source connection can be obtained. The Factory Method pattern is used here, as for the present the number of possible different data source types is expected to be small (for example a Castor data source, an XML data source and oracle source etc)

Author:
Chris Lewington

Constructor Summary
DAOFactory()
           
 
Method Summary
static DAOSource getDAOSource(java.lang.String sourceType)
          This method returns a specific data source instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOFactory

public DAOFactory()
Method Detail

getDAOSource

public static DAOSource getDAOSource(java.lang.String sourceType)
                              throws DataSourceException
This method returns a specific data source instance

Parameters:
sourceType - - The type of data source to be created
Returns:
The generated Data Source
Throws:
DataSourceException - - thrown if a data source instance cannot be created, for example due to missing/invalid config files


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk