com.ibm.connector2.hod
Class J2HODConnectionSpec

java.lang.Object
  |
  +--com.ibm.connector2.hod.J2HODConnectionSpec
All Implemented Interfaces:
javax.resource.cci.ConnectionSpec

public class J2HODConnectionSpec
extends java.lang.Object
implements javax.resource.cci.ConnectionSpec

This class is used by an application component to pass connection request-specific properties to the ConnectionFactory.getConnection() method.

It is recommended that the ConnectionSpec interface to be implemented as JavaBean to support tools. The properties on the ConnectionSpec implementation class must be defined through the getter and setter methods pattern.

The CCI specification defines a set of standard properties for a ConnectionSpec. The properties are defined either on a derived interface or an implementation class of an empty ConnectionSpec interface. In addition, a resource adapter may define additional properties specific to its underlying EIS.

See also: javax.resource.cci.ConnectionFactory


Constructor Summary
J2HODConnectionSpec()
          Creates a J2HODConnectionSpec instance.
 
Method Summary
 boolean equals(java.lang.Object other)
          Returns whether the other object is equal to current object.
 java.lang.String getPassword()
          Gets password.
 java.lang.String getUserName()
          Returns user name.
 int hashCode()
          Returns a hashcode integer.
 void setPassword(java.lang.String newPassword)
          Sets current password with a new password.
 void setUserName(java.lang.String newUserName)
          Sets current user name with a new user name.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2HODConnectionSpec

public J2HODConnectionSpec()
Creates a J2HODConnectionSpec instance.
Method Detail

equals

public boolean equals(java.lang.Object other)
Returns whether the other object is equal to current object.
Overrides:
equals in class java.lang.Object
Parameters:
other - Object - other object
Returns:
boolean - true/false

getPassword

public java.lang.String getPassword()
Gets password.
Returns:
java.lang.String - String representing a password
See Also:
setPassword(java.lang.String)

getUserName

public java.lang.String getUserName()
Returns user name.
Returns:
java.lang.String - String representing a user name
See Also:
setUserName(java.lang.String)

hashCode

public int hashCode()
Returns a hashcode integer.
Overrides:
hashCode in class java.lang.Object
Returns:
int - a hashcode for this user with this password

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
See Also:
getPassword()

setUserName

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