com.stratelia.webactiv.persistence
Class IdPK

java.lang.Object
  extended by com.stratelia.webactiv.util.WAPrimaryKey
      extended by com.stratelia.webactiv.persistence.IdPK
All Implemented Interfaces:
Serializable, Cloneable

public class IdPK
extends WAPrimaryKey

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.stratelia.webactiv.util.WAPrimaryKey
componentName, id, space
 
Constructor Summary
IdPK()
           
IdPK(int id)
           
IdPK(String id)
           
IdPK(String id, WAPrimaryKey value)
          IdPK(String id, WAPrimaryKey value)
 
Method Summary
 boolean equals(Object other)
          equals
 long getIdAsLong()
          getIdAsLong()
 int hashCode()
          Returns a hash code for the key
 void setIdAsLong(long value)
          setIdAsLong( long value )
 
Methods inherited from class com.stratelia.webactiv.util.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getRootTableName, getSpace, getSpaceId, getTableName, getTableName, setComponentName, setId, setSpace, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdPK

public IdPK()

IdPK

public IdPK(String id)

IdPK

public IdPK(int id)

IdPK

public IdPK(String id,
            WAPrimaryKey value)
IdPK(String id, WAPrimaryKey value)

Method Detail

equals

public boolean equals(Object other)
equals

Specified by:
equals in class WAPrimaryKey
Parameters:
other - the object to compare to this WAPrimaryKey
Returns:
true if obj is equals to this object

setIdAsLong

public void setIdAsLong(long value)
setIdAsLong( long value )


getIdAsLong

public long getIdAsLong()
getIdAsLong()


hashCode

public int hashCode()
Description copied from class: WAPrimaryKey
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.