Class SimpleDocumentPK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.contribution.attachment.model.SimpleDocumentPK
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SimpleDocumentPK extends WAPrimaryKey
- Author:
- ehugonnet
- See Also:
- Serialized Form
-
-
Field Summary
-
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
clone()
boolean
equals(Object obj)
This method must be specialized - Check if an another object is equal to this objectlong
getOldSilverpeasId()
int
hashCode()
Returns a hash code for the keySimpleDocumentPK
setOldSilverpeasId(long oldSilverpeasId)
String
toString()
Converts the contents of the key into a readable String.-
Methods inherited from class org.silverpeas.core.WAPrimaryKey
getComponentName, getId, getInstanceId, getRootTableName, getSpace, getSpaceId, getTableName, getTableName, setComponentName, setId, setSpace, toResourceReference
-
-
-
-
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:WAPrimaryKey
This method must be specialized - Check if an another object is equal to this object- Specified by:
equals
in classWAPrimaryKey
- Parameters:
obj
- the object to compare to this WAPrimaryKey- Returns:
- true if obj is equals to this object
-
hashCode
public int hashCode()
Description copied from class:WAPrimaryKey
Returns a hash code for the key- Overrides:
hashCode
in classWAPrimaryKey
- Returns:
- A hash code for this object
-
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
-
clone
public SimpleDocumentPK clone()
- Overrides:
clone
in classWAPrimaryKey
-
-