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() |
String |
getName() |
void |
initialize(JDBCDiskCacheAttributes config)
Initialize the factory.
|
static final String DSFACTORY_KEY
static final String FACTORY_KEY
DataSource getDataSource() throws SQLException
DataSource
configured by the factory.SQLException
- if the source can't be returnedvoid initialize(JDBCDiskCacheAttributes config) throws SQLException
config
- the factory settingsSQLException
- Any exceptions caught during processing will be
rethrown wrapped into a SQLException.void close() throws SQLException
SQLException
- Any exceptions caught during processing will be
rethrown wrapped into a SQLException.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.