Class PublicationPK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.ResourceReference
-
- org.silverpeas.core.contribution.publication.model.PublicationPK
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ComponentResourceIdentifier
,ResourceIdentifier
public class PublicationPK extends ResourceReference implements Serializable
It's the Publication PrimaryKey object It identify a Publication- Version:
- 1.0
- Author:
- Nicolas Eysseric
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.ResourceReference
UNKNOWN_ID
-
Fields inherited from class org.silverpeas.core.WAPrimaryKey
componentName, id, space
-
-
Constructor Summary
Constructors Constructor Description PublicationPK(String id)
PublicationPK(String id, String componentId)
PublicationPK(String id, String space, String componentName)
PublicationPK(String id, ResourceReference pk)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Check if an another object is equal to this objectString
getRootTableName()
Return the object root table nameString
getTableName()
Return the object table nameint
hashCode()
Returns a hash code for the key-
Methods inherited from class org.silverpeas.core.ResourceReference
asString, getComponentInstanceId, getLocalId, to
-
Methods inherited from class org.silverpeas.core.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toResourceReference, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.ComponentResourceIdentifier
toReference
-
-
-
-
Method Detail
-
getRootTableName
public String getRootTableName()
Return the object root table name- Overrides:
getRootTableName
in classWAPrimaryKey
- Returns:
- the root table name of the object
- Since:
- 1.0
-
getTableName
public String getTableName()
Return the object table name- Overrides:
getTableName
in classWAPrimaryKey
- Returns:
- the table name of the object
- Since:
- 1.0
- See Also:
WAPrimaryKey.getRootTableName()
-
equals
public boolean equals(Object obj)
Check if an another object is equal to this object- Overrides:
equals
in classResourceReference
- Parameters:
obj
- the object to compare to this PublicationPK- Returns:
- true if other is equals to this object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Returns a hash code for the key- Overrides:
hashCode
in classResourceReference
- Returns:
- A hash code for this object
- See Also:
Object.hashCode()
-
-