Class CoordinatePK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.node.coordinates.model.CoordinatePK
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CoordinatePK extends WAPrimaryKey implements Serializable
- Version:
- 1.0
- 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 CoordinatePK(String id)
Constructor declarationCoordinatePK(String id, String spaceId, String componentId)
Constructor declarationCoordinatePK(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()
Method declarationString
getTableName()
Method declarationint
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
-
CoordinatePK
public CoordinatePK(String id)
Constructor declaration- Parameters:
id
-
-
CoordinatePK
public CoordinatePK(String id, String spaceId, String componentId)
Constructor declaration- Parameters:
id
-spaceId
-componentId
-
-
CoordinatePK
public CoordinatePK(String id, WAPrimaryKey pk)
Constructor declaration- Parameters:
id
-pk
-
-
-
Method Detail
-
getRootTableName
public String getRootTableName()
Method declaration- Overrides:
getRootTableName
in classWAPrimaryKey
- Returns:
-
getTableName
public String getTableName()
Method declaration- Overrides:
getTableName
in classWAPrimaryKey
- Returns:
- 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
-
-