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

Variable Index

 o password
Password.
 o username
User name.

Constructor Index

 o ConnectionID()
Construct a new ConnectionID with a null user name and password.
 o ConnectionID(String, String)
Construct a new ConnectionID with a non-null user name and password.

Method Index

 o equals(Object)
Overrides Object.equals(Object)

Two ConnectionIDs with the same user name and password are considered equal.

 o hashCode()
Overrides Object.hashCode().

Variables

 o username
 public String username
User name. May be null.

 o password
 public String password
Password. May be null.

Constructors

 o ConnectionID
 public ConnectionID()
Construct a new ConnectionID with a null user name and password.

 o 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

Methods

 o 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
 o 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