com.stratelia.webactiv.util.questionContainer.model
Class QuestionContainerPK

java.lang.Object
  extended by com.stratelia.webactiv.util.WAPrimaryKey
      extended by com.stratelia.webactiv.util.questionContainer.model.QuestionContainerPK
All Implemented Interfaces:
Serializable, Cloneable

public class QuestionContainerPK
extends WAPrimaryKey
implements Serializable

It's the QuestionContainer PrimaryKey object It identify a QuestionContainer

Version:
1.0
Author:
Nicolas Eysseric
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.stratelia.webactiv.util.WAPrimaryKey
componentName, id, space
 
Constructor Summary
QuestionContainerPK(String id)
           
QuestionContainerPK(String id, String space, String componentName)
           
QuestionContainerPK(String id, WAPrimaryKey pk)
           
 
Method Summary
 boolean equals(Object other)
          This method must be specialized - Check if an another object is equal to this object
 String getRootTableName()
          Return the object root table name
 String getTableName()
          Get the database table name where the object is stored
 int hashCode()
          Returns a hash code for the key
 
Methods inherited from class com.stratelia.webactiv.util.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuestionContainerPK

public QuestionContainerPK(String id)

QuestionContainerPK

public QuestionContainerPK(String id,
                           String space,
                           String componentName)

QuestionContainerPK

public QuestionContainerPK(String id,
                           WAPrimaryKey pk)
Method Detail

getRootTableName

public String getRootTableName()
Description copied from class: WAPrimaryKey
Return the object root table name

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

getTableName

public String getTableName()
Description copied from class: WAPrimaryKey
Get the database table name where the object is stored

Overrides:
getTableName in class WAPrimaryKey
Returns:
the database table name where the object is stored : space + componentName + rootTableName (ex : ED1KmeliaPublication)
See Also:
WAPrimaryKey.space, WAPrimaryKey.componentName, WAPrimaryKey.getRootTableName()

equals

public boolean equals(Object other)
Description copied from class: WAPrimaryKey
This method must be specialized - Check if an another object is equal to this object

Specified by:
equals in class WAPrimaryKey
Parameters:
other - 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 class WAPrimaryKey
Returns:
A hash code for this object


Copyright © 2016 Silverpeas. All Rights Reserved.