Class NonPooledDatasourceService
- java.lang.Object
-
- org.pentaho.platform.engine.services.connection.datasource.dbcp.BaseDatasourceService
-
- org.pentaho.platform.engine.services.connection.datasource.dbcp.NonPooledDatasourceService
-
- All Implemented Interfaces:
org.pentaho.platform.api.data.IDBDatasourceService
- Direct Known Subclasses:
PooledDatasourceService
public class NonPooledDatasourceService extends BaseDatasourceService
-
-
Field Summary
-
Fields inherited from interface org.pentaho.platform.api.data.IDBDatasourceService
ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED, DEFAULT_AUTO_COMMIT, DEFAULT_CATALOG, DEFAULT_READ_ONLY, DEFAULT_TRANSACTION_ISOLATION, IDBDATASOURCE_SERVICE, INITIAL_SIZE, JDBC_DATASOURCE, JDBC_POOL, LOG_ABANDONED, MAX_ACTIVE_KEY, MAX_IDLE_KEY, MAX_OPEN_PREPARED_STATEMENTS, MAX_WAIT_KEY, MIN_IDLE_KEY, POOL_PREPARED_STATEMENTS, QUERY_KEY, REMOVE_ABANDONED, REMOVE_ABANDONED_TIMEOUT, TEST_ON_BORROW, TEST_ON_RETURN, TEST_WHILE_IDLE, TIME_BETWEEN_EVICTION_RUNS_MILLIS, TRANSACTION_ISOLATION_NONE_VALUE
-
-
Constructor Summary
Constructors Constructor Description NonPooledDatasourceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.DataSource
resolveDatabaseConnection(org.pentaho.database.model.IDatabaseConnection databaseConnection)
This should have been abstract, but changes to this API at a point release is not advised.protected DataSource
retrieve(String dsName)
This should have been abstract, but changes to this API at a point release is not advised.-
Methods inherited from class org.pentaho.platform.engine.services.connection.datasource.dbcp.BaseDatasourceService
clearCache, clearDataSource, getCacheManager, getDataSource, getDatasourceMgmtService, getJndiDataSource
-
-
-
-
Method Detail
-
retrieve
protected DataSource retrieve(String dsName) throws org.pentaho.platform.api.data.DBDatasourceServiceException
Description copied from class:BaseDatasourceService
This should have been abstract, but changes to this API at a point release is not advised.- Overrides:
retrieve
in classBaseDatasourceService
- Parameters:
dsName
- name of JNDI reference- Returns:
- DataSource
- Throws:
org.pentaho.platform.api.data.DBDatasourceServiceException
-
getDSBoundName
public String getDSBoundName(String dsName) throws org.pentaho.platform.api.data.DBDatasourceServiceException
Description copied from class:BaseDatasourceService
Since JNDI is supported different ways in different app servers, it's nearly impossible to have a ubiquitous way to look up a datasource. This method is intended to hide all the lookups that may be required to find a jndi name, and return the actual bound name.- Specified by:
getDSBoundName
in interfaceorg.pentaho.platform.api.data.IDBDatasourceService
- Overrides:
getDSBoundName
in classBaseDatasourceService
- Parameters:
dsName
- The Datasource name (like SampleData)- Returns:
- The bound DS name if it is bound in JNDI (like "jdbc/SampleData")
- Throws:
org.pentaho.platform.api.data.DBDatasourceServiceException
-
getDSUnboundName
public String getDSUnboundName(String dsName)
Description copied from class:BaseDatasourceService
Since JNDI is supported different ways in different app servers, it's nearly impossible to have a ubiquitous way to look up a datasource. This method is intended to extract just the regular name of a specified JNDI source.- Specified by:
getDSUnboundName
in interfaceorg.pentaho.platform.api.data.IDBDatasourceService
- Overrides:
getDSUnboundName
in classBaseDatasourceService
- Parameters:
dsName
- The Datasource name (like "jdbc/SampleData")- Returns:
- The unbound DS name (like "SampleData")
-
resolveDatabaseConnection
public DataSource resolveDatabaseConnection(org.pentaho.database.model.IDatabaseConnection databaseConnection) throws org.pentaho.platform.api.data.DBDatasourceServiceException
Description copied from class:BaseDatasourceService
This should have been abstract, but changes to this API at a point release is not advised.- Specified by:
resolveDatabaseConnection
in interfaceorg.pentaho.platform.api.data.IDBDatasourceService
- Overrides:
resolveDatabaseConnection
in classBaseDatasourceService
- Throws:
org.pentaho.platform.api.data.DBDatasourceServiceException
-
-