ContentPk Class
DEPRECATED Use java.lang.String instead.
- 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
-
ContentPk()
- Default constructor.
|
-
ContentPk(
String identifier)
- Constructor that takes in all of the primary key attributes as
parameters.
|
identifier
public String
identifier
- The unique identifier of the Content.
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.
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()