com.silverpeas.util
Class ForeignPK
java.lang.Object
com.stratelia.webactiv.util.WAPrimaryKey
com.silverpeas.util.ForeignPK
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- ContributionRatingPK
public class ForeignPK
- extends WAPrimaryKey
- implements Serializable
This PrimaryKey object must be used between two differents and independants modules It avoids
circular dependencies
- Version:
- 1.0
- Author:
- Nicolas Eysseric
- See Also:
- Serialized Form
Methods inherited from class com.stratelia.webactiv.util.WAPrimaryKey |
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toString |
ForeignPK
public ForeignPK(String id)
ForeignPK
public ForeignPK(String id,
String componentId)
ForeignPK
public ForeignPK(String id,
WAPrimaryKey pk)
ForeignPK
public ForeignPK(WAPrimaryKey pk)
getRootTableName
public String getRootTableName()
- Return the object root table name
- Overrides:
getRootTableName
in class WAPrimaryKey
- Returns:
- the root table name of the object
- Since:
- 1.0
getTableName
public String getTableName()
- Return the object table name
- Overrides:
getTableName
in class WAPrimaryKey
- Returns:
- the table name of the object
- Since:
- 1.0
- See Also:
WAPrimaryKey.space
,
WAPrimaryKey.componentName
,
WAPrimaryKey.getRootTableName()
equals
public boolean equals(Object other)
- Check if an another object is equal to this object
- Specified by:
equals
in class 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:
hashCode
in class WAPrimaryKey
- Returns:
- A hash code for this object
Copyright © 2016 Silverpeas. All Rights Reserved.