public class DatabaseUtil extends Object implements DataSourceProviderInterface
DataSourceProviderInterface.DatasourceType
Constructor and Description |
---|
DatabaseUtil() |
Modifier and Type | Method and Description |
---|---|
DataSource |
getNamedDataSource(String datasourceName)
Implementation of DatasourceProviderInterface.
|
DataSource |
getNamedDataSource(String datasourceName,
DataSourceProviderInterface.DatasourceType type)
Returns the named data source of respecting its
type |
public DataSource getNamedDataSource(String datasourceName) throws DataSourceNamingException
getNamedDataSource
in interface DataSourceProviderInterface
DataSourceNamingException
public DataSource getNamedDataSource(String datasourceName, DataSourceProviderInterface.DatasourceType type) throws DataSourceNamingException
DataSourceProviderInterface
type
getNamedDataSource
in interface DataSourceProviderInterface
datasourceName
- name of the desired data sourcetype
- data source's typeDataSourceNamingException