fri.util.database.jpa.tree.closuretable.pojos
Class TreePathImpl

java.lang.Object
  extended by fri.util.database.jpa.tree.closuretable.pojos.AbstractTreePathImpl
      extended by fri.util.database.jpa.tree.closuretable.pojos.TreePathImpl
All Implemented Interfaces:
TreePath

@Entity
public class TreePathImpl
extends AbstractTreePathImpl

The POJO that represents an ancestor to descendant relation. For every ClosureTableTreeNode node type there must be one TreePath type, but there could be more ("tree aspects").

Author:
Fritz Ritzberger, 14.10.2012

Nested Class Summary
 
Nested classes/interfaces inherited from class fri.util.database.jpa.tree.closuretable.pojos.AbstractTreePathImpl
AbstractTreePathImpl.CompositeId
 
Constructor Summary
TreePathImpl()
           
 
Method Summary
 ClosureTableTreeNode getAncestor()
          One of the ancestor tree nodes of the descendant, or the descendant itself.
 ClosureTableTreeNode getDescendant()
          The (descendant) tree node (of the ancestor).
 void setAncestor(ClosureTableTreeNode ancestor)
           
 void setDescendant(ClosureTableTreeNode descendant)
           
 
Methods inherited from class fri.util.database.jpa.tree.closuretable.pojos.AbstractTreePathImpl
getDepth, getOrderIndex, setDepth, setOrderIndex, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreePathImpl

public TreePathImpl()
Method Detail

getAncestor

public ClosureTableTreeNode getAncestor()
Description copied from interface: TreePath
One of the ancestor tree nodes of the descendant, or the descendant itself. The private Java property name for this MUST BE "ancestor" in any implementation, as that name is used in DAO queries.


setAncestor

public void setAncestor(ClosureTableTreeNode ancestor)

getDescendant

public ClosureTableTreeNode getDescendant()
Description copied from interface: TreePath
The (descendant) tree node (of the ancestor). The private Java property name for this MUST BE "descendant" in any implementation, as that name is used in DAO queries.


setDescendant

public void setDescendant(ClosureTableTreeNode descendant)