public class PooledDatasourceService extends Object implements org.pentaho.reporting.engine.classic.core.modules.misc.connections.DataSourceService
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.
|
protected DataSource |
queryFallback(String dataSource) |
protected DataSource |
retrieve(String datasource) |
protected DataSource retrieve(String datasource) throws org.pentaho.reporting.engine.classic.core.modules.misc.connections.DatasourceServiceException
org.pentaho.reporting.engine.classic.core.modules.misc.connections.DatasourceServiceException
protected DataSource queryFallback(String dataSource)
public void clearCache()
clearCache
in interface org.pentaho.reporting.engine.classic.core.modules.misc.connections.DataSourceService
public void clearDataSource(String dsName)
clearDataSource
in interface org.pentaho.reporting.engine.classic.core.modules.misc.connections.DataSourceService
public DataSource getDataSource(String dsName) throws org.pentaho.reporting.engine.classic.core.modules.misc.connections.DatasourceServiceException
getDataSource
in interface org.pentaho.reporting.engine.classic.core.modules.misc.connections.DataSourceService
dsName
- The Datasource nameorg.pentaho.reporting.engine.classic.core.modules.misc.connections.DatasourceServiceException
public String getDSBoundName(String dsName) throws org.pentaho.reporting.engine.classic.core.modules.misc.connections.DatasourceServiceException
getDSBoundName
in interface org.pentaho.reporting.engine.classic.core.modules.misc.connections.DataSourceService
dsName
- The Datasource name (like SampleData)org.pentaho.reporting.engine.classic.core.modules.misc.connections.DatasourceServiceException
Copyright © 2017 Hitachi Vantara. All rights reserved.