com.ibm.commerce.messaging.adapters.jcasample

Class SampleConnectionRequestInfo

  • java.lang.Object
    • com.ibm.commerce.messaging.adapters.jcasample.SampleConnectionRequestInfo
  • All Implemented Interfaces:
    javax.resource.spi.ConnectionRequestInfo


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

    This class represents the request specific data passed on to the application server as well as the SampleConnector. This class basically contains userName and password as request data.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright statement.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SampleConnectionRequestInfo(java.lang.String userName, java.lang.String password)
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      equals compare two SampleConnectionRequestInfo and returns true if they indicate the same connection
      int hashCode()
      hashCode returns a hashCode of the info based userName and password.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Copyright statement.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SampleConnectionRequestInfo

        public SampleConnectionRequestInfo(java.lang.String userName,
                                           java.lang.String password)
        Default constructor
        Parameters:
        userName - The user name.
        password - The password.
    • Method Detail

      • hashCode

        public int hashCode()
        hashCode returns a hashCode of the info based userName and password.
        Specified by:
        hashCode in interface javax.resource.spi.ConnectionRequestInfo
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int is the calculated hashCode
      • equals

        public boolean equals(java.lang.Object obj)
        equals compare two SampleConnectionRequestInfo and returns true if they indicate the same connection
        Specified by:
        equals in interface javax.resource.spi.ConnectionRequestInfo
        Overrides:
        equals in class java.lang.Object
        Parameters:
        Object - is the SampleConnectionRequestInfo to be compared
        Returns:
        boolean returns whether the ConnectionRequestInfo equals to the current instance