org.apache.ojb.broker
Class PBKey

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

public class PBKey
extends Object
implements Cloneable, 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.1 2007-08-24 22:17:36 ewestfal Exp $
Author:
Armin Waibel
See Also:
Serialized Form

Constructor Summary
PBKey(String jcdAlias)
          Convenience constructor for PBKey(jcdAlias, null, null).
PBKey(String jcdAlias, String user, String password)
          Creates a new PBKey.
 
Method Summary
protected  Object clone()
          
 boolean equals(Object obj)
          
 String getAlias()
          Returns the jdbc connection descriptor name as defined in the repository file.
 String getPassword()
          Returns the password.
 String getRepositoryFile()
          Deprecated. use getAlias() instead.
 String getUser()
          Returns the username.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PBKey

public PBKey(String jcdAlias,
             String user,
             String password)
Creates a new PBKey.

Parameters:
jcdAlias - The jdbc connection descriptor name as defined in the repository file
user - The username
password - The password

PBKey

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

Parameters:
jcdAlias - The jdbc connection descriptor name as defined in the repository file
Method Detail

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

clone

protected Object clone()
                throws CloneNotSupportedException

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object

getAlias

public String getAlias()
Returns the jdbc connection descriptor name as defined in the repository file.

Returns:
The JCD alias

getRepositoryFile

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

Returns the jdbc connection descriptor name as defined in the repository file.

Returns:
The JCD alias

getUser

public String getUser()
Returns the username.

Returns:
The username

getPassword

public String getPassword()
Returns the password.

Returns:
The password


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.