Class QuestionPK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.questioncontainer.question.model.QuestionPK
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class QuestionPK extends WAPrimaryKey implements Serializable
It's the Publication PrimaryKey object It identify a Publication- Author:
- Nicolas Eysseric
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.WAPrimaryKey
componentName, id, space
-
-
Constructor Summary
Constructors Constructor Description QuestionPK(String id)
Constructor which set only the idQuestionPK(String id, String spaceId, String componentId)
Constructor which set the id The WAPrimaryKey provides space and component nameQuestionPK(String id, WAPrimaryKey pk)
Constructor which set the id The WAPrimaryKey provides space and component name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
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.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toResourceReference, toString
-
-
-
-
Constructor Detail
-
QuestionPK
public QuestionPK(String id)
Constructor which set only the id
-
QuestionPK
public QuestionPK(String id, String spaceId, String componentId)
Constructor which set the id The WAPrimaryKey provides space and component name
-
QuestionPK
public QuestionPK(String id, WAPrimaryKey pk)
Constructor which set the id The WAPrimaryKey provides space and component name
-
-
Method Detail
-
getRootTableName
public String getRootTableName()
Return the object root table name- Overrides:
getRootTableName
in classWAPrimaryKey
- Returns:
- the root table name of the object
-
getTableName
public String getTableName()
Return the object table name- Overrides:
getTableName
in classWAPrimaryKey
- Returns:
- the table name of the object
- See Also:
WAPrimaryKey.getRootTableName()
-
equals
public boolean equals(Object other)
Check if an another object is equal to this object- Specified by:
equals
in classWAPrimaryKey
- Parameters:
other
- the object to compare to this QuestionPK- Returns:
- true if other is equals to this object
-
hashCode
public int hashCode()
Returns a hash code for the key- Overrides:
hashCode
in classWAPrimaryKey
- Returns:
- A hash code for this object
-
-