org.pentaho.di.core.database.util
Class DatabaseUtil
java.lang.Object
org.pentaho.di.core.database.util.DatabaseUtil
- All Implemented Interfaces:
- DataSourceProviderInterface
public class DatabaseUtil
- extends Object
- implements DataSourceProviderInterface
Provides default implementation for looking data sources up in
JNDI.
- Author:
- mbatchel
DatabaseUtil
public DatabaseUtil()
getNamedDataSource
public DataSource getNamedDataSource(String datasourceName)
throws DataSourceNamingException
- Implementation of DatasourceProviderInterface.
- Specified by:
getNamedDataSource
in interface DataSourceProviderInterface
- Returns:
- javax.sql.DataSource
- Throws:
DataSourceNamingException