Package org.silverpeas.core.node.model
Class NodePK
- java.lang.Object
-
- org.silverpeas.core.WAPrimaryKey
-
- org.silverpeas.core.ResourceReference
-
- org.silverpeas.core.node.model.NodePK
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ComponentResourceIdentifier
,ResourceIdentifier
- Direct Known Subclasses:
Location
public class NodePK extends ResourceReference implements Serializable
It's the Node PrimaryKey object It identify a Node- Version:
- 1.0
- Author:
- Nicolas Eysseric
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BIN_NODE_ID
static String
ROOT_NODE_ID
static String
UNCLASSED_NODE_ID
static String
UNDEFINED_NODE_ID
-
Fields inherited from class org.silverpeas.core.ResourceReference
UNKNOWN_ID
-
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 obj)
Check if an another object is equal to this objectString
getRootTableName()
Return the object root table nameString
getTableName()
Return the object table nameint
hashCode()
Returns a hash code for the keyboolean
isRoot()
boolean
isTrash()
boolean
isUnclassed()
boolean
isUndefined()
-
Methods inherited from class org.silverpeas.core.ResourceReference
asString, getComponentInstanceId, getLocalId, to
-
Methods inherited from class org.silverpeas.core.WAPrimaryKey
clone, getComponentName, getId, getInstanceId, getSpace, getSpaceId, getTableName, setComponentName, setId, setSpace, toResourceReference, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.ComponentResourceIdentifier
toReference
-
-
-
-
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
-
-
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 classWAPrimaryKey
- Returns:
- the root table name of the object
- Since:
- 1.0
-
getTableName
public String getTableName()
Return the object table name- Overrides:
getTableName
in classWAPrimaryKey
- Returns:
- the table name of the object
- Since:
- 1.0
- See Also:
WAPrimaryKey.getRootTableName()
-
equals
public boolean equals(Object obj)
Check if an another object is equal to this object- Overrides:
equals
in classResourceReference
- 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 classResourceReference
- Returns:
- A hash code for this object
- See Also:
Object.hashCode()
-
-