interface DataSourceProvider
| Modifier and Type | Method and Description |
|---|---|
javax.sql.DataSource |
getDataSource(Database database,
DatabaseConfig cfg)
Obtain the
DataSource for a specific Database. |
javax.sql.DataSource getDataSource(Database database, DatabaseConfig cfg) throws PersistenceException
DataSource for a specific Database.database - The FWD Database that needs a connection to backing database.cfg - The configuration of the given database.DataSource for the specified Database.PersistenceException - If any error occurs in the process.