com.stratelia.silverpeas.pdc.model
Class UsedAxisPK

java.lang.Object
  extended by com.stratelia.webactiv.util.WAPrimaryKey
      extended by com.stratelia.silverpeas.pdc.model.UsedAxisPK
All Implemented Interfaces:
Serializable, Cloneable

public class UsedAxisPK
extends WAPrimaryKey
implements Serializable

It's the UsedAxis PrimaryKey object It identify an axe used by an instance

Author:
Nicolas EYSSERIC
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.stratelia.webactiv.util.WAPrimaryKey
componentName, id, space
 
Constructor Summary
UsedAxisPK(int id)
           
UsedAxisPK(String id)
          Constructor which set only the id
UsedAxisPK(String id, String space, String componentName)
          Constructor which set id, space and component name
UsedAxisPK(String id, WAPrimaryKey pk)
          Constructor which set the id The WAPrimaryKey provides space and component name
 
Method Summary
 boolean equals(Object other)
          Check if an another object is equal to this object
 String getRootTableName()
          Return the object root table name
 String getTableName()
          Return the object table name
 int hashCode()
          Returns a hash code for the key
 
Methods inherited from class com.stratelia.webactiv.util.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsedAxisPK

public UsedAxisPK(String id)
Constructor which set only the id


UsedAxisPK

public UsedAxisPK(int id)

UsedAxisPK

public UsedAxisPK(String id,
                  String space,
                  String componentName)
Constructor which set id, space and component name


UsedAxisPK

public UsedAxisPK(String id,
                  WAPrimaryKey pk)
Constructor which set the id The WAPrimaryKey provides space and component name

Method Detail

getRootTableName

public String getRootTableName()
Return the object root table name

Overrides:
getRootTableName in class WAPrimaryKey
Returns:
the root table name of the object

getTableName

public String getTableName()
Return the object table name

Overrides:
getTableName in class WAPrimaryKey
Returns:
the table name of the object
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

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.