|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSourceFactory
A factory that returns a DataSource.
| Field Summary | |
|---|---|
static String |
DSFACTORY_KEY
Key for the configuration which contains DataSourceFactories |
static String |
FACTORY_KEY
Key for the configuration which contains the fully qualified name of the factory implementation class |
| Method Summary | |
|---|---|
void |
close()
A hook which is called when the resources of the associated DataSource can be released. |
DataSource |
getDataSource()
|
void |
initialize(org.apache.commons.configuration.Configuration configuration)
Initialize the factory. |
| Field Detail |
|---|
static final String DSFACTORY_KEY
static final String FACTORY_KEY
| Method Detail |
|---|
DataSource getDataSource()
throws TorqueException
DataSource configured by the factory.
TorqueException - if the source can't be returned
void initialize(org.apache.commons.configuration.Configuration configuration)
throws TorqueException
configuration - where to load the factory settings from
TorqueException - Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.
void close()
throws TorqueException
TorqueException - Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||