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
Nested Classes Modifier and Type Interface Description static class
DataSourceProviderInterface.DatasourceType
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DataSource
getNamedDataSource(String datasourceName)
Returns a named javax.sql.DataSourceDataSource
getNamedDataSource(String datasourceName, DataSourceProviderInterface.DatasourceType type)
Returns the named data source of respecting itstype
default DataSource
invalidateNamedDataSource(String datasourceName, DataSourceProviderInterface.DatasourceType type)
Invalidate the named data source of respecting itstype
-
-
-
Method Detail
-
getNamedDataSource
DataSource getNamedDataSource(String datasourceName) throws DataSourceNamingException
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
-
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
-
-