class PooledDataSourceProvider extends java.lang.Object implements DataSourceProvider
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,java.lang.reflect.Method> |
cpdsSetters
A collection of setters for a ComboPooledDataSource
|
private static java.util.logging.Logger |
LOG
Logger
|
Constructor and Description |
---|
PooledDataSourceProvider() |
Modifier and Type | Method and Description |
---|---|
javax.sql.DataSource |
getDataSource(Database database)
Obtain the
DataSource for a specific Database . |
private static java.util.Map<java.lang.String,java.lang.reflect.Method> cpdsSetters
private static final java.util.logging.Logger LOG
public javax.sql.DataSource getDataSource(Database database) throws PersistenceException
DataSource
for a specific Database
.getDataSource
in interface DataSourceProvider
database
- The FWD database
that needs a connection to backing database.DataSource
for the specified database
.PersistenceException
- If any error occurs in the process.