Class TreeNodePK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.pdc.tree.model.TreeNodePK
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TreeNodePK extends WAPrimaryKey implements Serializable
Class declaration- Author:
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.WAPrimaryKey
componentName, id, space
-
-
Constructor Summary
Constructors Constructor Description TreeNodePK(String id)
Constructor declarationTreeNodePK(String id, String space, String componentName)
Constructor declarationTreeNodePK(String id, WAPrimaryKey pk)
Constructor declaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
This method must be specialized - Check if another object is equal to this objectString
getRootTableName()
Return the object root table nameString
getTableName()
Get the database table name where the object is storedint
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
-
TreeNodePK
public TreeNodePK(String id)
Constructor declaration- Parameters:
id
-
-
TreeNodePK
public TreeNodePK(String id, String space, String componentName)
Constructor declaration- Parameters:
id
-space
-componentName
-
-
TreeNodePK
public TreeNodePK(String id, WAPrimaryKey pk)
Constructor declaration- Parameters:
id
-pk
-
-
-
Method Detail
-
getRootTableName
public String getRootTableName()
Description copied from class:WAPrimaryKey
Return the object root table name- Overrides:
getRootTableName
in classWAPrimaryKey
- 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 classWAPrimaryKey
- Returns:
- the database table name where the object is stored : space + componentName + rootTableName (ex : ED1KmeliaPublication)
- See Also:
WAPrimaryKey.getRootTableName()
-
equals
public boolean equals(Object other)
Description copied from class:WAPrimaryKey
This method must be specialized - Check if another object is equal to this object- Specified by:
equals
in classWAPrimaryKey
- 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 classWAPrimaryKey
- Returns:
- A hash code for this object
-
-