| java.lang.Object org.pentaho.core.util.DatasourceHelper
DatasourceHelper | public class DatasourceHelper (Code) | | |
Method Summary | |
public static void | clearCache() This method clears the JNDI DS cache. | public static void | clearDataSource(String dsName) This method clears the JNDI DS cache. | public static 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. | public static DataSource | getDataSourceFromJndi(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. |
clearCache | public static void clearCache()(Code) | | This method clears the JNDI DS cache. The need exists because after a JNDI
connection edit the old DS must be removed from the cache.
|
clearDataSource | public static void clearDataSource(String dsName)(Code) | | This method clears the JNDI DS cache. The need exists because after a JNDI
connection edit the old DS must be removed from the cache.
|
getDSBoundName | public static String getDSBoundName(String dsName) throws NamingException(Code) | | 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.
Parameters: dsName - The Datasource name (like SampleData) The bound DS name if it is bound in JNDI (like "jdbc/SampleData") throws: NamingException - |
getDataSourceFromJndi | public static DataSource getDataSourceFromJndi(String dsName) throws NamingException(Code) | | 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 DataSource if there is one bound in JNDI throws: NamingException - |
|
|