public interface DataSourceProviderInterface
Modifier and Type | Interface and Description |
---|---|
static class |
DataSourceProviderInterface.DatasourceType |
Modifier and Type | Method and Description |
---|---|
DataSource |
getNamedDataSource(String datasourceName)
Returns a named javax.sql.DataSource
|
DataSource |
getNamedDataSource(String datasourceName,
DataSourceProviderInterface.DatasourceType type)
Returns the named data source of respecting its
type |
DataSource getNamedDataSource(String datasourceName) throws DataSourceNamingException
datasourceName
- DataSourceNamingException
DataSource getNamedDataSource(String datasourceName, DataSourceProviderInterface.DatasourceType type) throws DataSourceNamingException
type
datasourceName
- name of the desired data sourcetype
- data source's typeDataSourceNamingException