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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
Constructor and Description |
---|
SampleConnectionRequestInfo(java.lang.String userName,
java.lang.String password)
Default constructor
|
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.
|
public static final java.lang.String COPYRIGHT
public SampleConnectionRequestInfo(java.lang.String userName, java.lang.String password)
userName
- The user name.password
- The password.public int hashCode()
hashCode
in interface javax.resource.spi.ConnectionRequestInfo
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface javax.resource.spi.ConnectionRequestInfo
equals
in class java.lang.Object
Object
- is the SampleConnectionRequestInfo to be
compared