Package org.pentaho.di.core.database
Interface DataSourceProviderInterface
- All Known Implementing Classes:
DatabaseUtil
public interface DataSourceProviderInterface
The purpose of this interface is to provide a way to get data sources from more places than just JNDI.
- Author:
- mbatchel Jan 8, 2009
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNamedDataSource
(String datasourceName) Returns a named javax.sql.DataSourcegetNamedDataSource
(String datasourceName, DataSourceProviderInterface.DatasourceType type) Returns the named data source of respecting itstype
default DataSource
Returns the specified data source of respecting itstype
default DataSource
invalidateNamedDataSource
(String datasourceName, DataSourceProviderInterface.DatasourceType type) Invalidate the named data source of respecting itstype
-
Method Details
-
getNamedDataSource
Returns a named javax.sql.DataSource- Parameters:
datasourceName
-- Returns:
- javax.sql.DataSource
- Throws:
DataSourceNamingException
-
getNamedDataSource
DataSource getNamedDataSource(String datasourceName, DataSourceProviderInterface.DatasourceType type) throws DataSourceNamingException Returns the named data source of respecting itstype
- Parameters:
datasourceName
- name of the desired data sourcetype
- data source's type- Returns:
- named data source
- Throws:
DataSourceNamingException
-
getPooledDataSourceFromMeta
default DataSource getPooledDataSourceFromMeta(DatabaseMeta dbMeta, DataSourceProviderInterface.DatasourceType type) throws DataSourceNamingException Returns the specified data source of respecting itstype
- Parameters:
dbMeta
- definition of the datasource provided via DatabaseMetatype
- data source's type- Returns:
- named data source
- Throws:
DataSourceNamingException
-
invalidateNamedDataSource
default DataSource invalidateNamedDataSource(String datasourceName, DataSourceProviderInterface.DatasourceType type) throws DataSourceNamingException Invalidate the named data source of respecting itstype
- Parameters:
datasourceName
- name of the desired data sourcetype
- data source's type- Returns:
- named data source
- Throws:
DataSourceNamingException
-