BEA Systems, Inc.

com.beasys.commerce.axiom.contact
Class ContactPk

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SmartKey
        |
        +--com.beasys.commerce.axiom.contact.UserPk
              |
              +--com.beasys.commerce.axiom.contact.ContactPk

public class ContactPk
extends UserPk
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. This class is generated by Theory Center's SmartGenartor.

See Also:
Serialized Form

Fields inherited from class com.beasys.commerce.axiom.contact.UserPk
identifier
 
Constructor Summary
ContactPk()
          Default constructor.
ContactPk(java.lang.String identifier)
          Constructor that takes in all of the primary key attributes as parameters.
 
Method Summary
 int compareTo(java.lang.Object o)
          Implements the compareTo method.
 int hashCode()
          override the hashCode() method
 java.lang.String toString()
          Returns the stringified version of the key class.
 
Methods inherited from class com.beasys.commerce.foundation.SmartKey
equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContactPk

public ContactPk()
Default constructor.

ContactPk

public ContactPk(java.lang.String identifier)
Constructor that takes in all of the primary key attributes as parameters. All attribute values will be set to the input parameter values.
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Implements the compareTo method. The following conditions hold true:
   (a > b) ==> (b < a)
   (a < b) ==> (b > a)
   (a = b) ==> (b = a)
 
Overrides:
compareTo in class UserPk
Tags copied from class: SmartKey
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
ClastCastException - if the specified object's type prevents it from being compared with this SmartKey.

toString

public java.lang.String toString()
Returns the stringified version of the key class.
Overrides:
toString in class UserPk
Tags copied from class: SmartKey
Returns:
A String representation of the SmartKey.

hashCode

public int hashCode()
override the hashCode() method
Overrides:
hashCode in class UserPk

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved