|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.ebi.intact.persistence.DAOFactory
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)
| 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 |
public DAOFactory()
| Method Detail |
public static DAOSource getDAOSource(java.lang.String sourceType)
throws DataSourceException
sourceType - - The type of data source to be created
DataSourceException - - thrown if a data source
instance cannot be created, for example due to missing/invalid config files
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||