Class MediaPK
java.lang.Object
org.silverpeas.core.WAPrimaryKey
org.silverpeas.components.gallery.model.MediaPK
- All Implemented Interfaces:
Serializable,Cloneable
public class MediaPK
extends org.silverpeas.core.WAPrimaryKey
It's the Node PrimaryKey object It identify a Node
- Version:
- 1.0
- Author:
- Nicolas Eysseric
- See Also:
-
Field Summary
Fields inherited from class org.silverpeas.core.WAPrimaryKey
componentName, id, space -
Constructor Summary
ConstructorsConstructorDescriptionConstructor which set only the idConstructor which set id, space and component nameConstructor which set the id The WAPrimaryKey provides space and component name -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if another object is equal to this objectReturn the object root table nameReturn the object table nameinthashCode()Returns a hash code for the keyMethods inherited from class org.silverpeas.core.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toResourceReference, toString
-
Constructor Details
-
MediaPK
Constructor which set only the id- Since:
- 1.0
-
MediaPK
Constructor which set id, space and component name- Since:
- 1.0
-
MediaPK
-
MediaPK
Constructor which set the id The WAPrimaryKey provides space and component name- Since:
- 1.0
-
-
Method Details
-
getRootTableName
Return the object root table name- Overrides:
getRootTableNamein classorg.silverpeas.core.WAPrimaryKey- Returns:
- the root table name of the object
- Since:
- 1.0
-
getTableName
Return the object table name- Overrides:
getTableNamein classorg.silverpeas.core.WAPrimaryKey- Returns:
- the table name of the object
- Since:
- 1.0
-
equals
Check if another object is equal to this object- Specified by:
equalsin classorg.silverpeas.core.WAPrimaryKey- Parameters:
other- the object to compare to this NodePK- Returns:
- true if other is equals to this object
- Since:
- 1.0
-
hashCode
public int hashCode()Returns a hash code for the key- Overrides:
hashCodein classorg.silverpeas.core.WAPrimaryKey- Returns:
- A hash code for this object
-