Class ContactPK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.ResourceReference
-
- org.silverpeas.core.contact.model.ContactPK
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ComponentResourceIdentifier
,ResourceIdentifier
public class ContactPK extends ResourceReference implements Serializable
It's the Contact PrimaryKey object It identify a Contact- Version:
- 1.0
- Author:
- Nicolas Eysseric
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.ResourceReference
UNKNOWN_ID
-
Fields inherited from class org.silverpeas.core.WAPrimaryKey
componentName, id, space
-
-
Constructor Summary
Constructors Constructor Description ContactPK(String id)
Constructor which set only the idContactPK(String id, String componentName)
Constructor which set the id The WAPrimaryKey provides space and component nameContactPK(String id, ResourceReference pk)
Constructor which set the id The WAPrimaryKey provides space and component name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Check if an another object is equal to this objectContactDetail
getContactDetail()
String
getRootTableName()
Return the object root table nameString
getTableName()
Return the object table nameint
hashCode()
Returns a hash code for the keyvoid
setContactDetail(ContactDetail contactDetail)
-
Methods inherited from class org.silverpeas.core.ResourceReference
asString, getComponentInstanceId, getLocalId, to
-
Methods inherited from class org.silverpeas.core.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toResourceReference, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.ComponentResourceIdentifier
toReference
-
-
-
-
Constructor Detail
-
ContactPK
public ContactPK(String id)
Constructor which set only the id- Since:
- 1.0
-
ContactPK
public ContactPK(String id, String componentName)
Constructor which set the id The WAPrimaryKey provides space and component name- Since:
- 1.0
-
ContactPK
public ContactPK(String id, ResourceReference pk)
Constructor which set the id The WAPrimaryKey provides space and component name- Since:
- 1.0
-
-
Method Detail
-
getRootTableName
public String getRootTableName()
Return the object root table name- Overrides:
getRootTableName
in classWAPrimaryKey
- Returns:
- the root table name of the object
- Since:
- 1.0
-
getTableName
public String getTableName()
Return the object table name- Overrides:
getTableName
in classWAPrimaryKey
- Returns:
- the table name of the object
- Since:
- 1.0
- See Also:
WAPrimaryKey.getRootTableName()
-
equals
public boolean equals(Object other)
Check if an another object is equal to this object- Overrides:
equals
in classResourceReference
- Parameters:
other
- the object to compare to this ContactPK- Returns:
- true if other is equals to this object
- Since:
- 1.0
-
getContactDetail
public ContactDetail getContactDetail()
-
setContactDetail
public void setContactDetail(ContactDetail contactDetail)
-
hashCode
public int hashCode()
Returns a hash code for the key- Overrides:
hashCode
in classResourceReference
- Returns:
- A hash code for this object
-
-