Class SimpleDocumentPK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.ResourceReference
-
- org.silverpeas.core.contribution.attachment.model.SimpleDocumentPK
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ComponentResourceIdentifier
,ResourceIdentifier
public class SimpleDocumentPK extends ResourceReference
the unique identifier of a document.- Author:
- ehugonnet
- 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 SimpleDocumentPK(String id)
SimpleDocumentPK(String id, String componentId)
SimpleDocumentPK(String id, WAPrimaryKey pk)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleDocumentPK
copy()
boolean
equals(Object obj)
Is the an another object is aResourceReference
instance and is equal to this object.long
getOldSilverpeasId()
int
hashCode()
Gets the hash code of this reference.SimpleDocumentPK
setOldSilverpeasId(long oldSilverpeasId)
String
toString()
Converts the contents of the key into a readable String.-
Methods inherited from class org.silverpeas.core.ResourceReference
asString, getComponentInstanceId, getLocalId, to
-
Methods inherited from class org.silverpeas.core.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getRootTableName, getSpace, getSpaceId, getTableName, getTableName, setComponentName, setId, setSpace, toResourceReference
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.ComponentResourceIdentifier
toReference
-
-
-
-
Constructor Detail
-
SimpleDocumentPK
public SimpleDocumentPK(String id)
-
SimpleDocumentPK
public SimpleDocumentPK(String id, WAPrimaryKey pk)
-
-
Method Detail
-
getOldSilverpeasId
public long getOldSilverpeasId()
-
setOldSilverpeasId
public SimpleDocumentPK setOldSilverpeasId(long oldSilverpeasId)
-
equals
public boolean equals(Object obj)
Description copied from class:ResourceReference
Is the an another object is aResourceReference
instance and is equal to this object.- Overrides:
equals
in classResourceReference
- Parameters:
obj
- the object to compare to this reference.- Returns:
- true if other is equals to this reference. False otherwise.
-
hashCode
public int hashCode()
Description copied from class:ResourceReference
Gets the hash code of this reference.- Overrides:
hashCode
in classResourceReference
- Returns:
- an integer
-
toString
public String toString()
Description copied from class:WAPrimaryKey
Converts the contents of the key into a readable String.- Overrides:
toString
in classWAPrimaryKey
- Returns:
- The string representation of this object
-
copy
public SimpleDocumentPK copy()
-
-