Class IdPK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.persistence.jdbc.bean.IdPK
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class IdPK extends WAPrimaryKey
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.WAPrimaryKey
componentName, id, space
-
-
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 objectlong
getIdAsLong()
int
hashCode()
Returns a hash code for the keyvoid
setIdAsLong(long value)
-
Methods inherited from class org.silverpeas.core.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getRootTableName, getSpace, getSpaceId, getTableName, getTableName, setComponentName, setId, setSpace, toResourceReference, toString
-
-
-
-
Constructor Detail
-
IdPK
public IdPK()
-
IdPK
public IdPK(String id)
-
IdPK
public IdPK(int id)
-
IdPK
public IdPK(String id, WAPrimaryKey value)
-
-
Method Detail
-
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
-
setIdAsLong
public void setIdAsLong(long value)
-
getIdAsLong
public long getIdAsLong()
-
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
-
-