com.stratelia.webactiv.util.node.model
Class NodePK

java.lang.Object
  extended by com.stratelia.webactiv.util.WAPrimaryKey
      extended by com.stratelia.webactiv.util.node.model.NodePK
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
Alias

public class NodePK
extends WAPrimaryKey
implements Serializable

It's the Node PrimaryKey object It identify a Node

Version:
1.0
Author:
Nicolas Eysseric
See Also:
Serialized Form

Field Summary
static String BIN_NODE_ID
           
 NodeDetail nodeDetail
          To apply the fat key pattern.
static String ROOT_NODE_ID
           
static String UNCLASSED_NODE_ID
           
static String UNDEFINED_NODE_ID
           
 
Fields inherited from class com.stratelia.webactiv.util.WAPrimaryKey
componentName, id, space
 
Constructor Summary
NodePK(String id)
          Constructor which set only the id
NodePK(String id, String componentId)
           
NodePK(String id, String space, String componentName)
          Constructor which set id, space and component name
NodePK(String id, WAPrimaryKey pk)
          Constructor which set the id The WAPrimaryKey provides space and component name
 
Method Summary
 boolean equals(Object obj)
          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
 boolean isRoot()
           
 boolean isTrash()
           
 boolean isUnclassed()
           
 boolean isUndefined()
           
 
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
 

Field Detail

UNDEFINED_NODE_ID

public static final String UNDEFINED_NODE_ID
See Also:
Constant Field Values

ROOT_NODE_ID

public static final String ROOT_NODE_ID
See Also:
Constant Field Values

BIN_NODE_ID

public static final String BIN_NODE_ID
See Also:
Constant Field Values

UNCLASSED_NODE_ID

public static final String UNCLASSED_NODE_ID
See Also:
Constant Field Values

nodeDetail

public transient NodeDetail nodeDetail
To apply the fat key pattern.

Constructor Detail

NodePK

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

Parameters:
id -
Since:
1.0

NodePK

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

Parameters:
id -
space -
componentName -
Since:
1.0

NodePK

public NodePK(String id,
              String componentId)

NodePK

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

Parameters:
id -
pk -
Since:
1.0
Method Detail

isTrash

public boolean isTrash()

isRoot

public boolean isRoot()

isUnclassed

public boolean isUnclassed()

isUndefined

public boolean isUndefined()

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 obj)
Check if an another object is equal to this object

Specified by:
equals in class WAPrimaryKey
Parameters:
obj - the object to compare to this NodePK
Returns:
true if other is equals to this object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Returns a hash code for the key

Overrides:
hashCode in class WAPrimaryKey
Returns:
A hash code for this object
See Also:
Object.hashCode()


Copyright © 2016 Silverpeas. All Rights Reserved.