Package org.exbin.xbup.catalog.entity
Class XBENodeTree
- java.lang.Object
-
- org.exbin.xbup.catalog.entity.XBENodeTree
-
- All Implemented Interfaces:
java.io.Serializable,XBMNodeTree,org.exbin.xbup.core.catalog.base.XBCNodeTree
@ParametersAreNonnullByDefault public class XBENodeTree extends java.lang.Object implements XBMNodeTree, java.io.Serializable
Node tree database entity.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XBENodeTree()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Determines whether another object is equal to this Item.intgetDepthLevel()static javax.persistence.GenerationTypegetGenerationType()longgetId()XBENodegetNode()XBENodegetOwner()XBERootgetRoot()inthashCode()Returns a hash code value for the object.voidsetDepthLevel(int depthLevel)Sets depth level.voidsetNode(org.exbin.xbup.core.catalog.base.XBCNode node)Sets node child.voidsetOwner(org.exbin.xbup.core.catalog.base.XBCNode owner)Sets node.voidsetRoot(org.exbin.xbup.core.catalog.base.XBCRoot root)Sets root record for this node.
-
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getIdin interfaceorg.exbin.xbup.core.catalog.base.XBCNodeTree
-
hashCode
public int hashCode()
Returns a hash code value for the object. This implementation computes a hash code value based on the id fields in this object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code value for this object.
-
equals
public boolean equals(@Nullable java.lang.Object object)Determines whether another object is equal to this Item. The result istrueif and only if the argument is not null and is a Item object that has the same id field values as this object.- Overrides:
equalsin classjava.lang.Object- Parameters:
object- the reference object with which to compare- Returns:
trueif this object is the same as the argument;falseotherwise.
-
getNode
@Nonnull public XBENode getNode()
- Specified by:
getNodein interfaceorg.exbin.xbup.core.catalog.base.XBCNodeTree
-
setNode
public void setNode(org.exbin.xbup.core.catalog.base.XBCNode node)
Description copied from interface:XBMNodeTreeSets node child.- Specified by:
setNodein interfaceXBMNodeTree- Parameters:
node- the node
-
getOwner
@Nonnull public XBENode getOwner()
- Specified by:
getOwnerin interfaceorg.exbin.xbup.core.catalog.base.XBCNodeTree
-
setOwner
public void setOwner(org.exbin.xbup.core.catalog.base.XBCNode owner)
Description copied from interface:XBMNodeTreeSets node.- Specified by:
setOwnerin interfaceXBMNodeTree- Parameters:
owner- the node
-
getRoot
@Nonnull public XBERoot getRoot()
- Specified by:
getRootin interfaceorg.exbin.xbup.core.catalog.base.XBCNodeTree
-
setRoot
public void setRoot(org.exbin.xbup.core.catalog.base.XBCRoot root)
Description copied from interface:XBMNodeTreeSets root record for this node.- Specified by:
setRootin interfaceXBMNodeTree- Parameters:
root- root record
-
getDepthLevel
public int getDepthLevel()
- Specified by:
getDepthLevelin interfaceorg.exbin.xbup.core.catalog.base.XBCNodeTree
-
setDepthLevel
public void setDepthLevel(int depthLevel)
Description copied from interface:XBMNodeTreeSets depth level.- Specified by:
setDepthLevelin interfaceXBMNodeTree- Parameters:
depthLevel- depth level
-
getGenerationType
@Nonnull public static javax.persistence.GenerationType getGenerationType()
-
-