org.objectweb.joram.client.jms.pool
Class ConnectionKey

java.lang.Object
  extended by org.objectweb.joram.client.jms.pool.ConnectionKey

public class ConnectionKey
extends java.lang.Object

A Key to retrieve Connection in cache.


Constructor Summary
ConnectionKey(java.lang.String name, java.lang.String pass)
          Creates a new ConnectionKey object for user's name and password.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionKey

public ConnectionKey(java.lang.String name,
                     java.lang.String pass)
Creates a new ConnectionKey object for user's name and password.

Parameters:
name - the name of user.
pass - the password of user.
Method Detail

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
returns the hash code value of the name attribute.
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Returns:
returns true if the specified object is a ConnectionKey and if name and password are equals.
See Also:
Object.hashCode()


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.