All Packages Class Hierarchy This Package Previous Next Index
Class org.xmlmiddleware.db.ConnectionID
java.lang.Object
|
+----org.xmlmiddleware.db.ConnectionID
- public class ConnectionID
- extends Object
Internal ID class used by JDBC1DataSource and JDBC2DataSource.
ConnectionID encapsulates a user name and password.
- Version:
- 2.0
- Author:
- Sean Walter, 2001, Ronald Bourret, 2001
-
password
- Password.
-
username
- User name.
-
ConnectionID()
- Construct a new ConnectionID with a null user name and password.
-
ConnectionID(String, String)
- Construct a new ConnectionID with a non-null user name and password.
-
equals(Object)
- Overrides Object.equals(Object)
Two ConnectionIDs with the same user name and password are
considered equal.
-
hashCode()
- Overrides Object.hashCode().
username
public String username
- User name. May be null.
password
public String password
- Password. May be null.
ConnectionID
public ConnectionID()
- Construct a new ConnectionID with a null user name and password.
ConnectionID
public ConnectionID(String u,
String p)
- Construct a new ConnectionID with a non-null user name and password.
- Parameters:
- u - The user name
- p - The password
equals
public boolean equals(Object object)
- Overrides Object.equals(Object)
Two ConnectionIDs with the same user name and password are
considered equal.
- Returns:
- Whether the objects are equal.
- Overrides:
- equals in class Object
hashCode
public int hashCode()
- Overrides Object.hashCode().
Two ConnectionIDs with the same user name and password return
the same hash code.
- Returns:
- The hash code.
- Overrides:
- hashCode in class Object
All Packages Class Hierarchy This Package Previous Next Index