org.pentaho.platform.engine.services.connection.datasource.dbcp
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:
- IDatasourceService
public class NonPooledDatasourceService
- extends BaseDatasourceService
Method Summary |
javax.sql.DataSource |
getDataSource(java.lang.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. |
java.lang.String |
getDSBoundName(java.lang.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. |
java.lang.String |
getDSUnboundName(java.lang.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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonPooledDatasourceService
public NonPooledDatasourceService()
getDataSource
public javax.sql.DataSource getDataSource(java.lang.String dsName)
throws DatasourceServiceException
- 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.
- Parameters:
dsName
- The Datasource name
- Returns:
- DataSource if there is one bound in JNDI
- Throws:
javax.naming.NamingException
DatasourceServiceException
getDSBoundName
public java.lang.String getDSBoundName(java.lang.String dsName)
throws DatasourceServiceException
- 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 interface IDatasourceService
- Overrides:
getDSBoundName
in class BaseDatasourceService
- Parameters:
dsName
- The Datasource name (like SampleData)
- Returns:
- The bound DS name if it is bound in JNDI (like "jdbc/SampleData")
- Throws:
DatasourceServiceException
getDSUnboundName
public java.lang.String getDSUnboundName(java.lang.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. This
method is intended to extract just the regular name of a specified JNDI source.
- Specified by:
getDSUnboundName
in interface IDatasourceService
- Overrides:
getDSUnboundName
in class BaseDatasourceService
- Parameters:
dsName
- The Datasource name (like "jdbc/SampleData")
- Returns:
- The unbound DS name (like "SampleData")