FileDocCategorySizeDatePackage
WrappedConnectionRequestInfo.javaAPI DocJBoss 4.2.12664Fri Jul 13 21:01:14 BST 2007org.jboss.resource.adapter.jdbc

WrappedConnectionRequestInfo

public class WrappedConnectionRequestInfo extends Object implements javax.resource.spi.ConnectionRequestInfo
WrappedConnectionRequestInfo
author
David Jencks
author
Adrian Brock
version
$Revision: 57189 $

Fields Summary
private final String
user
private final String
password
Constructors Summary
public WrappedConnectionRequestInfo(String user, String password)

      this.user = user;
      this.password = password;
   
Methods Summary
public booleanequals(java.lang.Object other)

      if (other == null || !(other.getClass() == WrappedConnectionRequestInfo.class))
      {
         return false;
      }
      WrappedConnectionRequestInfo cri = (WrappedConnectionRequestInfo) other;
      if (user == null)
      {
         if (cri.getUserName() != null)
         {
            return false;
         }
      }
      else
      {
         if (!user.equals(cri.getUserName()))
         {
            return false;
         }
      }
      if (password == null)
      {
         if (cri.getPassword() != null)
         {
            return false;
         }
      }
      else
      {
         if (!password.equals(cri.getPassword()))
         {
            return false;
         }
      }
      return true;
   
java.lang.StringgetPassword()

      return password;
   
java.lang.StringgetUserName()

      return user;
   
public inthashCode()

      return ((user == null) ? 37 : user.hashCode()) + 37 * ((password == null) ? 37 : password.hashCode());