org.pentaho.di.core.database.util
Class DatabaseUtil

java.lang.Object
  extended by 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

Constructor Summary
DatabaseUtil()
           
 
Method Summary
 DataSource getNamedDataSource(String datasourceName)
          Implementation of DatasourceProviderInterface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseUtil

public DatabaseUtil()
Method Detail

getNamedDataSource

public DataSource getNamedDataSource(String datasourceName)
                              throws DataSourceNamingException
Implementation of DatasourceProviderInterface.

Specified by:
getNamedDataSource in interface DataSourceProviderInterface
Returns:
javax.sql.DataSource
Throws:
DataSourceNamingException