Package org.silverpeas.core.tagcloud.dao
Class TagCloudPK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.tagcloud.dao.TagCloudPK
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TagCloudPK extends WAPrimaryKey implements Serializable
Primary key of a tagcloud.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.WAPrimaryKey
componentName, id, space
-
-
Constructor Summary
Constructors Constructor Description TagCloudPK(String id)
TagCloudPK(String id, String componentId)
TagCloudPK(String id, String componentId, int type)
TagCloudPK(String id, String spaceId, String componentId)
TagCloudPK(String id, WAPrimaryKey pk)
-
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
getType()
int
hashCode()
Returns a hash code for the keyvoid
setType(int type)
String
toString()
Converts the contents of the key into a readable String.-
Methods inherited from class org.silverpeas.core.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toResourceReference
-
-
-
-
Constructor Detail
-
TagCloudPK
public TagCloudPK(String id)
-
TagCloudPK
public TagCloudPK(String id, WAPrimaryKey pk)
-
-
Method Detail
-
getType
public int getType()
-
setType
public void setType(int type)
-
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
-
toString
public String toString()
Description copied from class:WAPrimaryKey
Converts the contents of the key into a readable String.- Overrides:
toString
in classWAPrimaryKey
- Returns:
- The string representation of 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
-
-