com.ibm.connector2.hod
Class J2HODConnectionRequestInfo

java.lang.Object
  |
  +--com.ibm.connector2.hod.J2HODConnectionRequestInfo
All Implemented Interfaces:
javax.resource.spi.ConnectionRequestInfo

public class J2HODConnectionRequestInfo
extends java.lang.Object
implements javax.resource.spi.ConnectionRequestInfo

Enables a resource adapter to pass its own request specific data structure across the connection request flow. A resource adapter extends the empty interface to support its own data structures for a conection request.

A typical use allows a resource adapter to handle application component specified per-connection request properties (for example, client ID). The application server passes these properties back across to match/createManagedConnection calls on the resource adapter. These properties remain opaque to the application server during the connection request flow.

Once the J2HODConnectionRequestInfo reaches match/createManagedConnection methods on the ManagedConnectionFactory instance, the resource adapter uses this additional per-request information to do connection creation and matching.

See also: J2HODManagedConnection, J2HOD3270ManagedConnectionFactory, J2HOD5250ManagedConnectionFactory, J2HODCICSManagedConnectionFactory, J2HODVTManagedConnectionFactory


Constructor Summary
J2HODConnectionRequestInfo()
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Returns a boolean value of whether this instance is equal to the other.
 java.lang.String getPassword()
          Returns the password for the current user.
 java.lang.String getUserName()
          Returns the user name.
 int hashCode()
          Returns an integer hash code value of current user with current password.
 void setPassword(java.lang.String newPassword)
          Sets current password with a new password.
 void setUserName(java.lang.String newUserName)
          Replaces current user name with a new user name.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2HODConnectionRequestInfo

public J2HODConnectionRequestInfo()
Method Detail

equals

public boolean equals(java.lang.Object other)
Returns a boolean value of whether this instance is equal to the other. Overrides equals() in class java.lang.Object
Specified by:
equals in interface javax.resource.spi.ConnectionRequestInfo
Overrides:
equals in class java.lang.Object
Returns:
boolean - true/false

getPassword

public java.lang.String getPassword()
Returns the password for the current user.
Returns:
String - password

getUserName

public java.lang.String getUserName()
Returns the user name.
Returns:
String - user name

hashCode

public int hashCode()
Returns an integer hash code value of current user with current password.
Specified by:
hashCode in interface javax.resource.spi.ConnectionRequestInfo
Overrides:
hashCode in class java.lang.Object
Returns:
int - hash code value

setPassword

public void setPassword(java.lang.String newPassword)
Sets current password with a new password.
Parameters:
newPassword - java.lang.String - a String specifying a password

setUserName

public void setUserName(java.lang.String newUserName)
Replaces current user name with a new user name.
Parameters:
newUserName - java.lang.String - a String specifying a user name