com.ibm.wsspi.rsadapter

Class WSProxyDSJNDINameAccessor

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.rsadapter.WSProxyDSJNDINameAccessor

  1. public class WSProxyDSJNDINameAccessor
  2. extends java.lang.Object

This class provides the access to the mapping from the Proxy DataSource JNDI name to the Delegate DataSource JNDI name. This class contains a Map which is keyed on the Proxy DataSource JNDI name. The values of this map contain the JNDI names of the Delegate DataSources.

There are two helper methods in this interface.


Constructor Summary

Constructor and Description
WSProxyDSJNDINameAccessor()

Method Summary

Modifier and Type Method and Description
  1. static
  2. java.lang.String
getCurrentDataSourceJndiName(java.lang.String proxyJndiName)
Get the current Delegate DataSource JNDI name for a particular Proxy Datasource from the map.
  1. static
  2. void
setCurrentDataSourceJndiName(java.lang.String proxyJndiName,java.lang.String dsJndiName)
Set the current Delegate DataSource JNDI name for a particular Proxy Datasource to the map.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

WSProxyDSJNDINameAccessor

  1. public WSProxyDSJNDINameAccessor( )

Method Detail

setCurrentDataSourceJndiName

  1. public static void setCurrentDataSourceJndiName( java.lang.String proxyJndiName,
  2. java.lang.String dsJndiName)
Set the current Delegate DataSource JNDI name for a particular Proxy Datasource to the map.
Parameters:
proxyJndiName - the JNDI name of the proxy datasource
dsJndiName - the JNDI name of the delegate datasource

getCurrentDataSourceJndiName

  1. public static java.lang.String getCurrentDataSourceJndiName( java.lang.String proxyJndiName)
  2. throws NoDataSourceJNDINameException
Get the current Delegate DataSource JNDI name for a particular Proxy Datasource from the map.
Parameters:
proxyJndiName - the JNDI name of the Proxy DataSource
Returns:
String the JNDI name of the Delegate DataSource
Throws:
NoDataSourceJNDINameException - if no Delegate Datasource JNDI name is set for this Proxy DataSource.