ContentPk Class

DEPRECATED Use java.lang.String instead.

com.bea.p13n.content
ContentPk Class

public class ContentPk

    extends Object
    implements Comparable, Serializable

This is the primary key class for all Content.

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


Hierarchy
Object
  ContentPk
All Implemented Interfaces

Comparable, Serializable
Direct Known Subclasses

com.bea.p13n.content.document.DocumentPk

Field Summary

public String
identifier
The unique identifier of the Content.
 

Constructor Summary

ContentPk()

Default constructor.
ContentPk(String identifier)

Constructor that takes in all of the primary key attributes as parameters.
 

Method Summary

public int
compareTo(Object o)
Compares the ContentPk.identifier to the object's identifier.
public boolean
equals(Object o)
public int
hashCode()
Overrides to use the hashCode of the ContentPk.identifier.
public String
toString()
Returns the ContentPk.identifier.
 
Methods from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
   
Methods from interface java.lang.Comparable
compareTo
 

Field Detail

identifier

public String identifier
The unique identifier of the Content.

 

Constructor Detail

ContentPk

public ContentPk()
Default constructor.

ContentPk

public ContentPk(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(Object) Method

public int compareTo(Object o)
Compares the ContentPk.identifier to the object's identifier.


equals(Object) Method

public boolean equals(Object o)
Overrides
Object.equals(Object)

hashCode() Method

public int hashCode()
Overrides to use the hashCode of the ContentPk.identifier.

Overrides
Object.hashCode()

toString() Method

public String toString()
Returns the ContentPk.identifier.

Overrides
Object.toString()