com.mulesoft.adapter.ra
Class CCIConnectionRequestInfo

java.lang.Object
  extended by com.mulesoft.adapter.ra.CCIConnectionRequestInfo
All Implemented Interfaces:
javax.resource.spi.ConnectionRequestInfo

public class CCIConnectionRequestInfo
extends Object
implements javax.resource.spi.ConnectionRequestInfo

CciConnectionRequestInfo is the analogon to the CciConnectionSpec. Whereas CciConnectionSpec is used to specify connection selection criterias on CCI level, the CciConnectionRequestInfo carries these information on spi level. In addition CciConnectionRequestInfo MUST implement equals() and hashCode() to allow the J2EE server a connection pre-selection based on CciConnectionRequestInfo information.


Constructor Summary
CCIConnectionRequestInfo(String userName, String password, String channelId)
          A valid XI AF CciConnectionRequestInfo can only be created together with all its properties.
 
Method Summary
 boolean equals(Object obj)
          A JCA 1.0 compliant CciConnectionRequestInfo must implement the equals() to allow the J2EE ConnectionManager a pre-selection of connections.
 String getChannelId()
           
 String getPassword()
           
 String getUserName()
          In contrast to ConnectionSpec no JCA requirements regarding property setter and getter methods are formulated for CciConnectionRequestInfo However, getters are used to retrieve the information in the ManagedConnectionFactory (ra implementation specific)
 int hashCode()
          A JCA 1.0 compliant CciConnectionRequestInfo must implement the hashCode() to allow the J2EE ConnectionManager a management of created connections.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCIConnectionRequestInfo

public CCIConnectionRequestInfo(String userName,
                                String password,
                                String channelId)
A valid XI AF CciConnectionRequestInfo can only be created together with all its properties. The constructor is called by the CciConnection only. (ra implementation specific)

Parameters:
userName - Name of the user if external connection requires a logon
password - Password of the user if external connection requires a logon
channelId - ID of the channel selected for those messages that are put into the Interaction.execute() call of Interactions, for which this connection is needed.
Method Detail

getUserName

public String getUserName()
In contrast to ConnectionSpec no JCA requirements regarding property setter and getter methods are formulated for CciConnectionRequestInfo However, getters are used to retrieve the information in the ManagedConnectionFactory (ra implementation specific)


getPassword

public String getPassword()

getChannelId

public String getChannelId()

equals

public boolean equals(Object obj)
A JCA 1.0 compliant CciConnectionRequestInfo must implement the equals() to allow the J2EE ConnectionManager a pre-selection of connections. The equality MUST be defined on the complete property set (see pg. 47) (CCI JCA 1.0)

Specified by:
equals in interface javax.resource.spi.ConnectionRequestInfo
Overrides:
equals in class Object
Parameters:
obj - Object to compare
Returns:
True of obj is equal (but not necessarily identical) with this CciConnectionRequestInfo, false otherwise

hashCode

public int hashCode()
A JCA 1.0 compliant CciConnectionRequestInfo must implement the hashCode() to allow the J2EE ConnectionManager a management of created connections. (CCI JCA 1.0)

Specified by:
hashCode in interface javax.resource.spi.ConnectionRequestInfo
Overrides:
hashCode in class Object
Returns:
Integer value representing the hash code of this CciConnectionRequestInfo


Copyright © 2012. All Rights Reserved.