BEA Systems, Inc.

com.beasys.commerce.axiom.content
Class ContentPk

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SmartKey
        |
        +--com.beasys.commerce.axiom.content.ContentPk
Direct Known Subclasses:
DocumentPk

public class ContentPk
extends SmartKey
implements java.io.Serializable

This is the primary key class for all Content.

All content needs to be identifiable by a unique String identifier.

See Also:
Serialized Form

Field Summary
 java.lang.String identifier
          The unique identifier of the Content.
 
Constructor Summary
ContentPk()
          Default constructor.
ContentPk(java.lang.String identifier)
          Constructor that takes in all of the primary key attributes as parameters.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares the identifier to the object's identifier.
 int hashCode()
          Overrides to use the hashCode of the identifier.
 java.lang.String toString()
          Returns the identifier.
 
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
 

Field Detail

identifier

public java.lang.String identifier
The unique identifier of the Content.
Constructor Detail

ContentPk

public ContentPk()
Default constructor.

ContentPk

public ContentPk(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)
Compares the identifier to the object's identifier.
Overrides:
compareTo in class SmartKey
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 identifier.
Overrides:
toString in class SmartKey
Tags copied from class: SmartKey
Returns:
A String representation of the SmartKey.

hashCode

public int hashCode()
Overrides to use the hashCode of the identifier.
Overrides:
hashCode in class java.lang.Object

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved