fri.util.database.jpa.tree.util
Class TreeActionLocation<N extends TreeNode>

java.lang.Object
  extended by fri.util.database.jpa.tree.util.TreeActionLocation<N>

public class TreeActionLocation<N extends TreeNode>
extends java.lang.Object

Parameter object that describes the location where a tree action happens, used by TreeDao and UniqueConstraint implementations. The inserted/updated/copied/moved node is not part of this, it is passed separately to the unique constraint implementation.

Author:
Fritz Ritzberger, 26.10.2012

Nested Class Summary
static class TreeActionLocation.ActionType
          Describes what tree action is happening.
static class TreeActionLocation.RelatedNodeType
          Describes what type the related node is.
 
Field Summary
 TreeActionLocation.ActionType actionType
          The type of the action about to take place.
 N relatedNode
          The related node where the action is about to take place, either parent or sibling.
 TreeActionLocation.RelatedNodeType relatedNodeType
          The relation type of the related node.
 N root
          The root of the tree where this modification is about to take place.
 
Constructor Summary
TreeActionLocation(N root, TreeActionLocation.RelatedNodeType relatedNodeType, N relatedNode, TreeActionLocation.ActionType actionType)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

public final N extends TreeNode root
The root of the tree where this modification is about to take place. When null, this is a root insertion.


relatedNodeType

public final TreeActionLocation.RelatedNodeType relatedNodeType
The relation type of the related node.


relatedNode

public final N extends TreeNode relatedNode
The related node where the action is about to take place, either parent or sibling.


actionType

public final TreeActionLocation.ActionType actionType
The type of the action about to take place.

Constructor Detail

TreeActionLocation

public TreeActionLocation(N root,
                          TreeActionLocation.RelatedNodeType relatedNodeType,
                          N relatedNode,
                          TreeActionLocation.ActionType actionType)