com.bankframe.ei.ldap
Class LDAPEntityBeanPK

java.lang.Object
  extended by com.bankframe.ei.ldap.LDAPEntityBeanPK
All Implemented Interfaces:
LDAPPrimaryKey, Serializable

public class LDAPEntityBeanPK
extends Object
implements LDAPPrimaryKey

This class is the base class for all LDAP Entity Bean primary key classes. This class is used by the EJB server to identify the primary key value of each LDAP object, namely the relative distinguished name of the LDAP object.

See Also:
Serialized Form

Field Summary
 String rdnValue
           
 
Constructor Summary
LDAPEntityBeanPK()
          Default constructor
LDAPEntityBeanPK(String rdnValue)
          Constructor
 
Method Summary
 boolean equals(Object o)
          This method is required by the EJB1.1 spec
 String getRdnAttributeValue()
          This method gets the rdn for this primary key
 int hashCode()
          This method is required by the EJB 1.1 spc
 void setRdnAttributeValue(String value)
          This method sets the rdn for this primary key
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rdnValue

public String rdnValue
Constructor Detail

LDAPEntityBeanPK

public LDAPEntityBeanPK()
Default constructor


LDAPEntityBeanPK

public LDAPEntityBeanPK(String rdnValue)
Constructor

Parameters:
rdnValue - String containing the relative distinguished name of the object
Method Detail

equals

public boolean equals(Object o)
This method is required by the EJB1.1 spec

Specified by:
equals in interface LDAPPrimaryKey
Overrides:
equals in class Object
Parameters:
o - java.lang.Object The object to test for equality
Returns:
True if the referenced object is equal to this object

getRdnAttributeValue

public String getRdnAttributeValue()
This method gets the rdn for this primary key

Specified by:
getRdnAttributeValue in interface LDAPPrimaryKey
Returns:
String reprsentation of the rdn

hashCode

public int hashCode()
This method is required by the EJB 1.1 spc

Specified by:
hashCode in interface LDAPPrimaryKey
Overrides:
hashCode in class Object
Returns:
a hashing code for this object

setRdnAttributeValue

public void setRdnAttributeValue(String value)
This method sets the rdn for this primary key

Specified by:
setRdnAttributeValue in interface LDAPPrimaryKey
Parameters:
value - The rdn for this primary key


Copyright © 2005, 2007, Oracle. All rights reserved.