Class DocumentVersionPK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.importexport.versioning.DocumentVersionPK
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DocumentVersionPK extends WAPrimaryKey implements Serializable
This object contains the info about PrimaryKey of document version- Version:
- 1.0
- Author:
- Georgy Shakirin
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.WAPrimaryKey
componentName, id, space
-
-
Constructor Summary
Constructors Constructor Description DocumentVersionPK(int id)
Constructor declarationDocumentVersionPK(int id, String spaceId, String componentId)
Constructor declarationDocumentVersionPK(int id, WAPrimaryKey pk)
Constructor declaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Method declarationString
getRootTableName()
**********String
getTableName()
Method declarationint
hashCode()
Returns a hash code for the keyString
toString()
Method declaration-
Methods inherited from class org.silverpeas.core.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toResourceReference
-
-
-
-
Constructor Detail
-
DocumentVersionPK
public DocumentVersionPK(int id)
Constructor declaration- Parameters:
id
-
-
DocumentVersionPK
public DocumentVersionPK(int id, String spaceId, String componentId)
Constructor declaration- Parameters:
id
-spaceId
-componentId
-
-
DocumentVersionPK
public DocumentVersionPK(int id, WAPrimaryKey pk)
Constructor declaration- Parameters:
id
-pk
-
-
-
Method Detail
-
getRootTableName
public String getRootTableName()
**********- Overrides:
getRootTableName
in classWAPrimaryKey
- Returns:
- the root table name of the object (exemple : Publication, Node, ...)
-
getTableName
public String getTableName()
Method declaration- Overrides:
getTableName
in classWAPrimaryKey
- Returns:
- See Also:
WAPrimaryKey.getRootTableName()
-
equals
public boolean equals(Object other)
Method declaration- Specified by:
equals
in classWAPrimaryKey
- Parameters:
other
-- Returns:
-
toString
public String toString()
Method declaration- Overrides:
toString
in classWAPrimaryKey
- Returns:
-
hashCode
public int hashCode()
Returns a hash code for the key- Overrides:
hashCode
in classWAPrimaryKey
- Returns:
- A hash code for this object
-
-