public interface DataSourceFactory
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
void |
close()
A hook which is called when the resources of the associated DataSource
can be released.
|
DataSource |
getDataSource() |
void |
initialize(org.apache.commons.configuration2.Configuration configuration)
Initialize the factory.
|
static final String DSFACTORY_KEY
static final String FACTORY_KEY
DataSource getDataSource() throws TorqueException
DataSource
configured by the factory.TorqueException
- if the source can't be returnedvoid initialize(org.apache.commons.configuration2.Configuration configuration) throws TorqueException
configuration
- where to load the factory settings fromTorqueException
- 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.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.