org.jboss.resource.adapter.jdbc
public class: WrappedConnectionRequestInfo [javadoc |
source]
java.lang.Object
org.jboss.resource.adapter.jdbc.WrappedConnectionRequestInfo
All Implemented Interfaces:
javax.resource.spi.ConnectionRequestInfo
WrappedConnectionRequestInfo
- author:
< - a href="mailto:d_jencks@users.sourceforge.net">David Jencks
- author:
< - a href="mailto:adrian@jboss.com">Adrian Brock
- version:
$ - Revision: 71554 $
| Method from org.jboss.resource.adapter.jdbc.WrappedConnectionRequestInfo Detail: |
public boolean equals(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;
}
|
String getPassword() {
return password;
}
|
String getUserName() {
return user;
}
|
public int hashCode() {
return ((user == null) ? 37 : user.hashCode()) + 37 * ((password == null) ? 37 : password.hashCode());
}
|