public class SharedPoolDataSourceFactory extends Object implements DataSourceFactory
DSFACTORY_KEY, FACTORY_KEY
Constructor and Description |
---|
SharedPoolDataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the pool associated with this factory and releases it.
|
DataSource |
getDataSource() |
String |
getName() |
void |
initialize(JDBCDiskCacheAttributes config)
Initialize the factory.
|
public SharedPoolDataSourceFactory()
public String getName()
getName
in interface DataSourceFactory
public DataSource getDataSource()
getDataSource
in interface DataSourceFactory
DataSource
configured by the factory.DataSourceFactory.getDataSource()
public void initialize(JDBCDiskCacheAttributes config) throws SQLException
DataSourceFactory
initialize
in interface DataSourceFactory
config
- the factory settingsSQLException
- Any exceptions caught during processing will be
rethrown wrapped into a SQLException.DataSourceFactory.initialize(JDBCDiskCacheAttributes)
public void close() throws SQLException
close
in interface DataSourceFactory
SQLException
- if the pool cannot be closed properlyCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.