public class PooledDatasourceService extends BaseDatasourceService
Constructor and Description |
---|
PooledDatasourceService() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
This method clears the JNDI DS cache.
|
void |
clearDataSource(String dsName)
This method clears the JNDI DS cache.
|
DataSource |
getDataSource(String dsName)
Since JNDI is supported different ways in different app servers, it's
nearly impossible to have a ubiquitous way to look up a datasource.
|
String |
getDSBoundName(String dsName)
Since JNDI is supported different ways in different app servers, it's
nearly impossible to have a ubiquitous way to look up a datasource.
|
String |
getDSUnboundName(String dsName)
Since JNDI is supported different ways in different app servers, it's
nearly impossible to have a ubiquitous way to look up a datasource.
|
public void clearCache()
clearCache
in interface org.pentaho.platform.api.data.IDBDatasourceService
clearCache
in class BaseDatasourceService
public void clearDataSource(String dsName)
clearDataSource
in interface org.pentaho.platform.api.data.IDBDatasourceService
clearDataSource
in class BaseDatasourceService
public DataSource getDataSource(String dsName) throws org.pentaho.platform.api.data.DBDatasourceServiceException
dsName
- The Datasource nameNamingException
org.pentaho.platform.api.data.DBDatasourceServiceException
public String getDSBoundName(String dsName) throws org.pentaho.platform.api.data.DBDatasourceServiceException
getDSBoundName
in interface org.pentaho.platform.api.data.IDBDatasourceService
getDSBoundName
in class BaseDatasourceService
dsName
- The Datasource name (like SampleData)org.pentaho.platform.api.data.DBDatasourceServiceException
public String getDSUnboundName(String dsName)
getDSUnboundName
in interface org.pentaho.platform.api.data.IDBDatasourceService
getDSUnboundName
in class BaseDatasourceService
dsName
- The Datasource name (like "jdbc/SampleData")