BEA Systems, Inc.

com.beasys.commerce.axiom.contact
Class UserPk

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SmartKey
        |
        +--com.beasys.commerce.axiom.contact.UserPk
Direct Known Subclasses:
UnifiedUserPk

public class UserPk
extends SmartKey
implements java.io.Serializable

This is a PrimaryKey for managing the life cycle of a BSC Configurable/Entity bean. It is derived from SmartKey which requires that the classes be serializable and comparable.

See Also:
Serialized Form

Field Summary
 java.lang.String identifier
           
 
Constructor Summary
UserPk()
          Default constructor.
UserPk(java.lang.String identifier)
          Constructor that takes a string as the primary key attribute.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object with the specified object for order.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Returns the string representation of the key object.
 
Methods inherited from class com.beasys.commerce.foundation.SmartKey
equals
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

identifier

public java.lang.String identifier
Constructor Detail

UserPk

public UserPk()
Default constructor.

UserPk

public UserPk(java.lang.String identifier)
Constructor that takes a string as the primary key attribute.
Parameters:
identifier - the string that uniquely identifies a user component
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The following conditions hold true:

   (a > b) ==> (b < a)
   (a < b) ==> (b > a)
   (a = b) ==> (b = a)
 
Overrides:
compareTo in class SmartKey
Parameters:
o - the object against which this object is compared
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object

toString

public java.lang.String toString()
Returns the string representation of the key object.
Overrides:
toString in class SmartKey
Returns:
the string representation of the key object

hashCode

public int hashCode()
Returns a hash code value for the object.
Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for the object

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved