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 boolean
equals(java.lang.Object object)
Determines whether another object is equal to this Item.int
getDepthLevel()
static javax.persistence.GenerationType
getGenerationType()
long
getId()
XBENode
getNode()
XBENode
getOwner()
XBERoot
getRoot()
int
hashCode()
Returns a hash code value for the object.void
setDepthLevel(int depthLevel)
Sets depth level.void
setNode(org.exbin.xbup.core.catalog.base.XBCNode node)
Sets node child.void
setOwner(org.exbin.xbup.core.catalog.base.XBCNode owner)
Sets node.void
setRoot(org.exbin.xbup.core.catalog.base.XBCRoot root)
Sets root record for this node.
-
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getId
in 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:
hashCode
in 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 istrue
if and only if the argument is not null and is a Item object that has the same id field values as this object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- the reference object with which to compare- Returns:
true
if this object is the same as the argument;false
otherwise.
-
getNode
@Nonnull public XBENode getNode()
- Specified by:
getNode
in interfaceorg.exbin.xbup.core.catalog.base.XBCNodeTree
-
setNode
public void setNode(org.exbin.xbup.core.catalog.base.XBCNode node)
Description copied from interface:XBMNodeTree
Sets node child.- Specified by:
setNode
in interfaceXBMNodeTree
- Parameters:
node
- the node
-
getOwner
@Nonnull public XBENode getOwner()
- Specified by:
getOwner
in interfaceorg.exbin.xbup.core.catalog.base.XBCNodeTree
-
setOwner
public void setOwner(org.exbin.xbup.core.catalog.base.XBCNode owner)
Description copied from interface:XBMNodeTree
Sets node.- Specified by:
setOwner
in interfaceXBMNodeTree
- Parameters:
owner
- the node
-
getRoot
@Nonnull public XBERoot getRoot()
- Specified by:
getRoot
in interfaceorg.exbin.xbup.core.catalog.base.XBCNodeTree
-
setRoot
public void setRoot(org.exbin.xbup.core.catalog.base.XBCRoot root)
Description copied from interface:XBMNodeTree
Sets root record for this node.- Specified by:
setRoot
in interfaceXBMNodeTree
- Parameters:
root
- root record
-
getDepthLevel
public int getDepthLevel()
- Specified by:
getDepthLevel
in interfaceorg.exbin.xbup.core.catalog.base.XBCNodeTree
-
setDepthLevel
public void setDepthLevel(int depthLevel)
Description copied from interface:XBMNodeTree
Sets depth level.- Specified by:
setDepthLevel
in interfaceXBMNodeTree
- Parameters:
depthLevel
- depth level
-
getGenerationType
@Nonnull public static javax.persistence.GenerationType getGenerationType()
-
-