fri.util.database.jpa.tree.examples.closuretable
Class PersonAbstractTreePath

java.lang.Object
  extended by fri.util.database.jpa.tree.examples.closuretable.PersonAbstractTreePath
All Implemented Interfaces:
TreePath
Direct Known Subclasses:
PersonDeletedFlagTreePath, PersonFunctionalTreePath, PersonOrganisationalTreePath, PersonTemporalTreePath

@MappedSuperclass
public abstract class PersonAbstractTreePath
extends java.lang.Object
implements TreePath


Constructor Summary
PersonAbstractTreePath()
           
 
Method Summary
 int getDepth()
          The 0-n level this descendant tree node occurs, 0 is self-reference.
 int getOrderIndex()
          The 0-n child position this descendant occurs at.
 void setDepth(int depth)
           
 void setOrderIndex(int position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fri.util.database.jpa.tree.closuretable.TreePath
getAncestor, getDescendant, setAncestor, setDescendant
 

Constructor Detail

PersonAbstractTreePath

public PersonAbstractTreePath()
Method Detail

getDepth

public int getDepth()
Description copied from interface: TreePath
The 0-n level this descendant tree node occurs, 0 is self-reference. The private Java property name for this MUST BE "depth" in any implementation, as that name is used in DAO queries.

Specified by:
getDepth in interface TreePath

setDepth

public void setDepth(int depth)
Specified by:
setDepth in interface TreePath

getOrderIndex

public int getOrderIndex()
Description copied from interface: TreePath
The 0-n child position this descendant occurs at. The private Java property name for this MUST BE "orderIndex" in any implementation, as that name is used in DAO queries.

Specified by:
getOrderIndex in interface TreePath

setOrderIndex

public void setOrderIndex(int position)
Specified by:
setOrderIndex in interface TreePath