com.silverpeas.comment.model
Class CommentPK

java.lang.Object
  extended by com.stratelia.webactiv.util.WAPrimaryKey
      extended by com.silverpeas.comment.model.CommentPK
All Implemented Interfaces:
Serializable, Cloneable

public class CommentPK
extends WAPrimaryKey
implements Serializable

This object contains the info about PrimaryKey of document

Version:
1.0
Author:
Georgy Shakirin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.stratelia.webactiv.util.WAPrimaryKey
componentName, id, space
 
Constructor Summary
CommentPK(String id)
          Constructor declaration
CommentPK(String id, String componentId)
          Constructs a new comment primary key from the specified identifier and Silverpeas component identifier.
CommentPK(String id, String spaceId, String componentId)
          Constructor declaration
CommentPK(String id, WAPrimaryKey pk)
          Constructor declaration
 
Method Summary
 boolean equals(Object other)
          Method declaration
 String getRootTableName()
          **********
 String getTableName()
          Method declaration
 int hashCode()
          Returns a hash code for the key
 String toString()
          Method declaration
 
Methods inherited from class com.stratelia.webactiv.util.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommentPK

public CommentPK(String id)
Constructor declaration

Parameters:
id -
See Also:

CommentPK

public CommentPK(String id,
                 String componentId)
Constructs a new comment primary key from the specified identifier and Silverpeas component identifier.

Parameters:
id - the identifier of the comment.
componentId - the identifier of the component to which the comment belongs.

CommentPK

public CommentPK(String id,
                 String spaceId,
                 String componentId)
Constructor declaration

Parameters:
id -
spaceId -
componentId -
See Also:

CommentPK

public CommentPK(String id,
                 WAPrimaryKey pk)
Constructor declaration

Parameters:
id -
pk -
See Also:
Method Detail

getRootTableName

public String getRootTableName()
**********

Overrides:
getRootTableName in class WAPrimaryKey
Returns:
the root table name of the object (exemple : Publication, Node, ...)

getTableName

public String getTableName()
Method declaration

Overrides:
getTableName in class WAPrimaryKey
Returns:
See Also:

equals

public boolean equals(Object other)
Method declaration

Specified by:
equals in class WAPrimaryKey
Parameters:
other -
Returns:
See Also:

toString

public String toString()
Method declaration

Overrides:
toString in class WAPrimaryKey
Returns:
See Also:

hashCode

public int hashCode()
Returns a hash code for the key

Overrides:
hashCode in class WAPrimaryKey
Returns:
A hash code for this object


Copyright © 2016 Silverpeas. All Rights Reserved.