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 DataSourceProviderInterfaceDataSourceNamingExceptionpublic DataSource getNamedDataSource(String datasourceName, DataSourceProviderInterface.DatasourceType type) throws DataSourceNamingException
DataSourceProviderInterfacetypegetNamedDataSource in interface DataSourceProviderInterfacedatasourceName - name of the desired data sourcetype - data source's typeDataSourceNamingException