org.apache.ojb.broker
Class PBKey

java.lang.Object
  extended byorg.apache.ojb.broker.PBKey
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class PBKey
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

A immutable key to identify PB instances in pools, ...
The used jcdAlias name represents an alias for a connection defined in the repository file.

Version:
$Id: PBKey.java,v 1.11.2.2 2004/12/22 21:34:05 arminw Exp $
Author:
Armin Waibel
See Also:
Serialized Form

Constructor Summary
PBKey(java.lang.String jcdAlias)
          Convenience constructor for PBKey(jcdAlias, null, null)
PBKey(java.lang.String jcdAlias, java.lang.String user, java.lang.String password)
          Constructor for new PBKey.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAlias()
          Returns the jcd-alias name, defined in the repository file.
 java.lang.String getPassword()
           
 java.lang.String getRepositoryFile()
          Deprecated. use getAlias() instead.
 java.lang.String getUser()
           
 int hashCode()
          Return the hash code of this PBKey, formed by the repository-, user-, password-name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PBKey

public PBKey(java.lang.String jcdAlias,
             java.lang.String user,
             java.lang.String password)
Constructor for new PBKey.

Parameters:
jcdAlias - alias name, defined in the repository file.
user -
password -

PBKey

public PBKey(java.lang.String jcdAlias)
Convenience constructor for PBKey(jcdAlias, null, null)

Method Detail

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()
Return the hash code of this PBKey, formed by the repository-, user-, password-name.


toString

public java.lang.String toString()

getAlias

public java.lang.String getAlias()
Returns the jcd-alias name, defined in the repository file.


getRepositoryFile

public java.lang.String getRepositoryFile()
Deprecated. use getAlias() instead.


getUser

public java.lang.String getUser()

getPassword

public java.lang.String getPassword()


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2