Uses of Interface
fri.util.database.jpa.tree.nestedsets.NestedSetsTreeNode

Packages that use NestedSetsTreeNode
fri.util.database.jpa.tree.examples.nestedsets   
fri.util.database.jpa.tree.examples.nestedsets.temporal   
fri.util.database.jpa.tree.nestedsets A "Nested Sets" tree implementation for hierarchical structures in a database table. 
fri.util.database.jpa.tree.nestedsets.pojos   
fri.util.database.jpa.tree.nestedsets.uniqueconstraints   
 

Uses of NestedSetsTreeNode in fri.util.database.jpa.tree.examples.nestedsets
 

Classes in fri.util.database.jpa.tree.examples.nestedsets that implement NestedSetsTreeNode
 class PersonNst
          Example entity, Nst = Nested Sets Tree.
 

Methods in fri.util.database.jpa.tree.examples.nestedsets that return NestedSetsTreeNode
 NestedSetsTreeNode PersonNst.getTopLevel()
           
 

Methods in fri.util.database.jpa.tree.examples.nestedsets with parameters of type NestedSetsTreeNode
 void PersonNst.setTopLevel(NestedSetsTreeNode topLevel)
           
 

Uses of NestedSetsTreeNode in fri.util.database.jpa.tree.examples.nestedsets.temporal
 

Classes in fri.util.database.jpa.tree.examples.nestedsets.temporal that implement NestedSetsTreeNode
 class PersonTnst
          Example temporal entity, Tnst = Temporal Nested Sets Tree, redirecting validTo to endValid, and validFrom to nothing, as validTo is enough to support historization.
 

Methods in fri.util.database.jpa.tree.examples.nestedsets.temporal that return NestedSetsTreeNode
 NestedSetsTreeNode PersonTnst.getTopLevel()
           
 

Methods in fri.util.database.jpa.tree.examples.nestedsets.temporal with parameters of type NestedSetsTreeNode
 void PersonTnst.setTopLevel(NestedSetsTreeNode topLevel)
           
 

Uses of NestedSetsTreeNode in fri.util.database.jpa.tree.nestedsets
 

Subinterfaces of NestedSetsTreeNode in fri.util.database.jpa.tree.nestedsets
 interface TemporalNestedSetsTreeNode
          Merges Temporal with NestedSetsTreeNode.
 

Methods in fri.util.database.jpa.tree.nestedsets that return NestedSetsTreeNode
 NestedSetsTreeNode NestedSetsTreeDao.addChild(NestedSetsTreeNode parent, NestedSetsTreeNode child)
          Adds to end of children of given parent.
 NestedSetsTreeNode NestedSetsTreeDao.addChildAt(NestedSetsTreeNode parent, NestedSetsTreeNode child, int position)
          Adds at specified position to children of given parent.
 NestedSetsTreeNode NestedSetsTreeDao.addChildBefore(NestedSetsTreeNode sibling, NestedSetsTreeNode child)
          Adds to children before given sibling, sibling is pushed backwards in children list.
 NestedSetsTreeNode NestedSetsTreeNode.clone()
          For copy and unique constraint checking this is required.
 NestedSetsTreeNode NestedSetsTreeDao.copy(NestedSetsTreeNode node, NestedSetsTreeNode parent, NestedSetsTreeNode copiedNodeTemplate)
          Copies the given node to end of children list of parent.
 NestedSetsTreeNode NestedSetsTreeDao.copyBefore(NestedSetsTreeNode node, NestedSetsTreeNode sibling, NestedSetsTreeNode copiedNodeTemplate)
          Copies the given node to position of given sibling, pushing sibling backwards in list.
 NestedSetsTreeNode NestedSetsTreeDao.copyTo(NestedSetsTreeNode node, NestedSetsTreeNode parent, int position, NestedSetsTreeNode copiedNodeTemplate)
          Copies the given node to given position in children list of parent.
 NestedSetsTreeNode NestedSetsTreeDao.copyToBeRoot(NestedSetsTreeNode child, NestedSetsTreeNode copiedNodeTemplate)
          Copies a tree to be a root.
 NestedSetsTreeNode NestedSetsTreeDao.createRoot(NestedSetsTreeNode root)
          Creates a tree root node.
 NestedSetsTreeNode NestedSetsTreeDao.find(java.io.Serializable id)
          
 NestedSetsTreeNode NestedSetsTreeDao.getParent(NestedSetsTreeNode node)
          
 NestedSetsTreeNode NestedSetsTreeDao.getRoot(NestedSetsTreeNode node)
          
 NestedSetsTreeNode NestedSetsTreeNode.getTopLevel()
          DO NOT use this, is for the DAO exclusively.
protected  NestedSetsTreeNode TemporalNestedSetsTreeTest.newTreePojo(java.lang.String name)
           
protected  NestedSetsTreeNode NestedSetsTreeTest.newTreePojo(java.lang.String name)
          Factory method for new NestedSetsTreePojos.
 

Methods in fri.util.database.jpa.tree.nestedsets that return types with arguments of type NestedSetsTreeNode
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.find(NestedSetsTreeNode parent, java.util.Map<java.lang.String,java.lang.Object> criteria)
          Convenience finder method.
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.findDirectChildren(java.util.List<NestedSetsTreeNode> subNodes)
          Finds a children list from a predefined list of nodes under a parent which is first in list.
 java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.findRemoved(NestedSetsTreeNode parent, java.util.Map<java.lang.String,java.lang.Object> criteria)
          
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.findSubTree(NestedSetsTreeNode parent, java.util.List<NestedSetsTreeNode> tree)
          Finds a sub-tree list from a predefined list of nodes under a parent.
 java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.findValidDirectChildren(java.util.List<NestedSetsTreeNode> subNodes)
          Use this to retrieve children lists that do not contain removed nodes from trees returned by getFullTreeCacheable().
 java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.getAllRoots()
          
protected  java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.getChildListForInsertion(NestedSetsTreeNode parent)
          Overridden to return children including invalid ones.
protected  java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getChildListForInsertion(NestedSetsTreeNode parent)
           
 java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.getChildren(NestedSetsTreeNode parent)
          Overridden because super.getChildren() would not work with a sub-tree list that contains nodes with left/right indexes that have gaps because historicized nodes are not contained.
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getChildren(NestedSetsTreeNode parent)
          Gives the children of passed parent.
 java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.getFullTreeCacheable(NestedSetsTreeNode node)
          
protected  java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeTest.getFullTreeForIntegrityCheck(NestedSetsTreeNode root)
           
protected  java.util.List<NestedSetsTreeNode> NestedSetsTreeTest.getFullTreeForIntegrityCheck(NestedSetsTreeNode root)
           
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getPath(NestedSetsTreeNode node)
          
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getRoots()
          
protected  java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.getSubTreeDepthFirstForCopy(NestedSetsTreeNode nodeToCopy)
          Overridden to include removed nodes into copy-list, else inconsistent left/right numbers would occur.
protected  java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getSubTreeDepthFirstForCopy(NestedSetsTreeNode nodeToCopy)
           
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getTree(NestedSetsTreeNode parent)
          Reads a tree or sub-tree, including all children.
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getTreeCacheable(NestedSetsTreeNode parent)
          Reads a tree or sub-tree, including all children, which can be cached and passed back into findSubTree() or findDirectChildren().
protected  UniqueTreeConstraint<NestedSetsTreeNode> TemporalNestedSetsTreeTest.newUniqueChildrenTreeConstraintImpl()
           
protected  UniqueTreeConstraint<NestedSetsTreeNode> NestedSetsTreeTest.newUniqueChildrenTreeConstraintImpl()
           
protected  UniqueTreeConstraint<NestedSetsTreeNode> TemporalNestedSetsTreeTest.newUniqueChildrenTreeConstraintImplWithoutRoots()
           
protected  UniqueTreeConstraint<NestedSetsTreeNode> NestedSetsTreeTest.newUniqueChildrenTreeConstraintImplWithoutRoots()
           
protected  UniqueTreeConstraint<NestedSetsTreeNode> TemporalNestedSetsTreeTest.newUniqueWholeTreeConstraintImpl()
           
protected  UniqueTreeConstraint<NestedSetsTreeNode> NestedSetsTreeTest.newUniqueWholeTreeConstraintImpl()
           
protected  UniqueTreeConstraint<NestedSetsTreeNode> TemporalNestedSetsTreeTest.newUniqueWholeTreeConstraintImplWithoutRoots()
           
protected  UniqueTreeConstraint<NestedSetsTreeNode> NestedSetsTreeTest.newUniqueWholeTreeConstraintImplWithoutRoots()
           
 

Methods in fri.util.database.jpa.tree.nestedsets with parameters of type NestedSetsTreeNode
 NestedSetsTreeNode NestedSetsTreeDao.addChild(NestedSetsTreeNode parent, NestedSetsTreeNode child)
          Adds to end of children of given parent.
 NestedSetsTreeNode NestedSetsTreeDao.addChildAt(NestedSetsTreeNode parent, NestedSetsTreeNode child, int position)
          Adds at specified position to children of given parent.
 NestedSetsTreeNode NestedSetsTreeDao.addChildBefore(NestedSetsTreeNode sibling, NestedSetsTreeNode child)
          Adds to children before given sibling, sibling is pushed backwards in children list.
protected  void TemporalNestedSetsTreeTest.checkTreeIntegrity(DbSession session, NestedSetsTreeNode root)
           
protected  void NestedSetsTreeTest.checkTreeIntegrity(DbSession session, NestedSetsTreeNode root)
          Checks the left and right indexes for continuity.
 NestedSetsTreeNode NestedSetsTreeDao.copy(NestedSetsTreeNode node, NestedSetsTreeNode parent, NestedSetsTreeNode copiedNodeTemplate)
          Copies the given node to end of children list of parent.
 NestedSetsTreeNode NestedSetsTreeDao.copyBefore(NestedSetsTreeNode node, NestedSetsTreeNode sibling, NestedSetsTreeNode copiedNodeTemplate)
          Copies the given node to position of given sibling, pushing sibling backwards in list.
protected  void NestedSetsTreeDao.copyOrMovePreconditions(NestedSetsTreeNode relativeNode, NestedSetsTreeNode nodeToMove)
           
 NestedSetsTreeNode NestedSetsTreeDao.copyTo(NestedSetsTreeNode node, NestedSetsTreeNode parent, int position, NestedSetsTreeNode copiedNodeTemplate)
          Copies the given node to given position in children list of parent.
 NestedSetsTreeNode NestedSetsTreeDao.copyToBeRoot(NestedSetsTreeNode child, NestedSetsTreeNode copiedNodeTemplate)
          Copies a tree to be a root.
 NestedSetsTreeNode NestedSetsTreeDao.createRoot(NestedSetsTreeNode root)
          Creates a tree root node.
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.find(NestedSetsTreeNode parent, java.util.Map<java.lang.String,java.lang.Object> criteria)
          Convenience finder method.
 java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.findRemoved(NestedSetsTreeNode parent, java.util.Map<java.lang.String,java.lang.Object> criteria)
          
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.findSubTree(NestedSetsTreeNode parent, java.util.List<NestedSetsTreeNode> tree)
          Finds a sub-tree list from a predefined list of nodes under a parent.
 int NestedSetsTreeDao.getChildCount(NestedSetsTreeNode parent)
          
protected  java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.getChildListForInsertion(NestedSetsTreeNode parent)
          Overridden to return children including invalid ones.
protected  java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getChildListForInsertion(NestedSetsTreeNode parent)
           
 java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.getChildren(NestedSetsTreeNode parent)
          Overridden because super.getChildren() would not work with a sub-tree list that contains nodes with left/right indexes that have gaps because historicized nodes are not contained.
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getChildren(NestedSetsTreeNode parent)
          Gives the children of passed parent.
 java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.getFullTreeCacheable(NestedSetsTreeNode node)
          
protected  java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeTest.getFullTreeForIntegrityCheck(NestedSetsTreeNode root)
           
protected  java.util.List<NestedSetsTreeNode> NestedSetsTreeTest.getFullTreeForIntegrityCheck(NestedSetsTreeNode root)
           
 int NestedSetsTreeDao.getLevel(NestedSetsTreeNode node)
          
protected  java.lang.String TemporalNestedSetsTreeTest.getName(NestedSetsTreeNode node)
           
protected  java.lang.String NestedSetsTreeTest.getName(NestedSetsTreeNode node)
          For a concrete POJO we must return properties from it.
 NestedSetsTreeNode NestedSetsTreeDao.getParent(NestedSetsTreeNode node)
          
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getPath(NestedSetsTreeNode node)
          
 NestedSetsTreeNode NestedSetsTreeDao.getRoot(NestedSetsTreeNode node)
          
protected  java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.getSubTreeDepthFirstForCopy(NestedSetsTreeNode nodeToCopy)
          Overridden to include removed nodes into copy-list, else inconsistent left/right numbers would occur.
protected  java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getSubTreeDepthFirstForCopy(NestedSetsTreeNode nodeToCopy)
           
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getTree(NestedSetsTreeNode parent)
          Reads a tree or sub-tree, including all children.
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.getTreeCacheable(NestedSetsTreeNode parent)
          Reads a tree or sub-tree, including all children, which can be cached and passed back into findSubTree() or findDirectChildren().
 boolean NestedSetsTreeDao.isChildOf(NestedSetsTreeNode child, NestedSetsTreeNode parent)
          
 boolean NestedSetsTreeDao.isEqualToOrChildOf(NestedSetsTreeNode child, NestedSetsTreeNode parent)
          
 boolean TemporalNestedSetsTreeDao.isLeaf(NestedSetsTreeNode node)
          Overridden to read the subtree when super returns false, because historicized nodes occupy left and right indexes.
 boolean NestedSetsTreeDao.isLeaf(NestedSetsTreeNode node)
          
protected  boolean TemporalNestedSetsTreeDao.isNextChild(int nextChildLeft, NestedSetsTreeNode node, int currentChildRight, java.util.List<NestedSetsTreeNode> subNodes, int currentIndex)
          Overridden to bridge index gaps that occur when nodes have been historicized.
protected  boolean NestedSetsTreeDao.isNextChild(int nextChildLeft, NestedSetsTreeNode node, int currentChildRight, java.util.List<NestedSetsTreeNode> subNodes, int currentIndex)
           
 boolean NestedSetsTreeDao.isRoot(NestedSetsTreeNode entity)
          
protected  boolean TemporalNestedSetsTreeDao.isValidFilterChild(NestedSetsTreeNode node)
          Overridden to filter out historicized children on findDirectChildren().
protected  boolean NestedSetsTreeDao.isValidFilterChild(NestedSetsTreeNode entity)
          Called by filterChildren() from getChildren().
 void NestedSetsTreeDao.move(NestedSetsTreeNode node, NestedSetsTreeNode newParent)
          Moves the given node to end of children list of parent.
 void NestedSetsTreeDao.moveBefore(NestedSetsTreeNode node, NestedSetsTreeNode sibling)
          Moves the given node to position of given sibling, pushing sibling backwards in list.
 void NestedSetsTreeDao.moveTo(NestedSetsTreeNode node, NestedSetsTreeNode parent, int position)
          Moves the given node to given position in children list of parent.
 void NestedSetsTreeDao.moveToBeRoot(NestedSetsTreeNode child)
          Moves a sub-tree to be a root.
 void NestedSetsTreeDao.remove(NestedSetsTreeNode node)
          Removes the tree under given node, including the node.
protected  void TemporalNestedSetsTreeDao.remove(NestedSetsTreeNode node, int removedNodesCount)
          Overridden to historicize children.
protected  void NestedSetsTreeDao.remove(NestedSetsTreeNode node, int removedNodesCount)
          Removes given children.
 void TemporalNestedSetsTreeDao.removePhysically(NestedSetsTreeNode node)
          Physically deletes the tree under given node, including the node itself.
protected  void TemporalNestedSetsTreeTest.renameBeforeCopy(NestedSetsTreeNode node)
           
protected  void NestedSetsTreeTest.renameBeforeCopy(NestedSetsTreeNode node)
           
protected  void TemporalNestedSetsTreeTest.setNameNotConstraintChecking(NestedSetsTreeNode entity, java.lang.String name)
           
protected  void NestedSetsTreeTest.setNameNotConstraintChecking(NestedSetsTreeNode entity, java.lang.String name)
           
 void NestedSetsTreeNode.setTopLevel(NestedSetsTreeNode topLevel)
          DO NOT use this, is for the DAO exclusively.
protected  void TemporalNestedSetsTreeTest.setValid(NestedSetsTreeNode entity)
           
 int TemporalNestedSetsTreeDao.size(NestedSetsTreeNode node)
          Overridden to always read the subtree, because historicized nodes occupy left and right indexes.
 int NestedSetsTreeDao.size(NestedSetsTreeNode entity)
          
 void TemporalNestedSetsTreeDao.unremove(NestedSetsTreeNode node)
          Recovers the given removed (historicized) node, including all sub-nodes.
 void NestedSetsTreeDao.update(NestedSetsTreeNode entity)
          Updates the given persistent object.
 

Method parameters in fri.util.database.jpa.tree.nestedsets with type arguments of type NestedSetsTreeNode
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.findDirectChildren(java.util.List<NestedSetsTreeNode> subNodes)
          Finds a children list from a predefined list of nodes under a parent which is first in list.
 java.util.List<NestedSetsTreeNode> NestedSetsTreeDao.findSubTree(NestedSetsTreeNode parent, java.util.List<NestedSetsTreeNode> tree)
          Finds a sub-tree list from a predefined list of nodes under a parent.
 java.util.List<NestedSetsTreeNode> TemporalNestedSetsTreeDao.findValidDirectChildren(java.util.List<NestedSetsTreeNode> subNodes)
          Use this to retrieve children lists that do not contain removed nodes from trees returned by getFullTreeCacheable().
protected  boolean TemporalNestedSetsTreeDao.isNextChild(int nextChildLeft, NestedSetsTreeNode node, int currentChildRight, java.util.List<NestedSetsTreeNode> subNodes, int currentIndex)
          Overridden to bridge index gaps that occur when nodes have been historicized.
protected  boolean NestedSetsTreeDao.isNextChild(int nextChildLeft, NestedSetsTreeNode node, int currentChildRight, java.util.List<NestedSetsTreeNode> subNodes, int currentIndex)
           
 

Constructor parameters in fri.util.database.jpa.tree.nestedsets with type arguments of type NestedSetsTreeNode
NestedSetsTreeDao(java.lang.Class<? extends NestedSetsTreeNode> entityClass, DbSession session)
           
NestedSetsTreeDao(java.lang.Class<? extends NestedSetsTreeNode> entityClass, java.lang.String entityName, DbSession session)
           
TemporalNestedSetsTreeDao(java.lang.Class<? extends NestedSetsTreeNode> targetEntityClass, java.lang.String validFromPropertyName, java.lang.String validToPropertyName, DbSession session)
          
TemporalNestedSetsTreeDao(java.lang.Class<? extends NestedSetsTreeNode> targetEntityClass, java.lang.String targetEntityName, java.lang.String validFromPropertyName, java.lang.String validToPropertyName, DbSession session)
          
 

Uses of NestedSetsTreeNode in fri.util.database.jpa.tree.nestedsets.pojos
 

Classes in fri.util.database.jpa.tree.nestedsets.pojos that implement NestedSetsTreeNode
 class NestedSetsTreePojo
          Example POJO for the unit test, implementing NestedSetsTree via JPA.
 class NonUniqueNestedSetsTreePojo
          Example POJO for the unit test, implementing NestedSetsTree via JPA.
 class TemporalNestedSetsTreePojo
          Example POJO for the unit test, implementing TemporalNestedSetsTree via JPA.
 

Methods in fri.util.database.jpa.tree.nestedsets.pojos that return NestedSetsTreeNode
 NestedSetsTreeNode TemporalNestedSetsTreePojo.clone()
           
 NestedSetsTreeNode NonUniqueNestedSetsTreePojo.clone()
           
 NestedSetsTreeNode NestedSetsTreePojo.clone()
           
 NestedSetsTreeNode TemporalNestedSetsTreePojo.getTopLevel()
           
 NestedSetsTreeNode NonUniqueNestedSetsTreePojo.getTopLevel()
           
 NestedSetsTreeNode NestedSetsTreePojo.getTopLevel()
           
 

Methods in fri.util.database.jpa.tree.nestedsets.pojos with parameters of type NestedSetsTreeNode
 void TemporalNestedSetsTreePojo.setTopLevel(NestedSetsTreeNode topLevel)
          Do not call.
 void NonUniqueNestedSetsTreePojo.setTopLevel(NestedSetsTreeNode topLevel)
          Do not call.
 void NestedSetsTreePojo.setTopLevel(NestedSetsTreeNode topLevel)
          Do not call.
 

Uses of NestedSetsTreeNode in fri.util.database.jpa.tree.nestedsets.uniqueconstraints
 

Methods in fri.util.database.jpa.tree.nestedsets.uniqueconstraints with parameters of type NestedSetsTreeNode
protected  void UniqueWholeTreeConstraintImpl.appendNodeCheckingCondition(NestedSetsTreeNode root, java.lang.StringBuilder queryText, java.util.List<java.lang.Object> parameters)
           
 

Method parameters in fri.util.database.jpa.tree.nestedsets.uniqueconstraints with type arguments of type NestedSetsTreeNode
 boolean UniqueChildrenTemporalConstraintImpl.checkUniqueConstraint(java.util.List<NestedSetsTreeNode> nodes, TreeActionLocation<NestedSetsTreeNode> location)
          The implementation of this is expected to check the uniqueness of passed node(s).
 boolean UniqueChildrenTemporalConstraintImpl.checkUniqueConstraint(java.util.List<NestedSetsTreeNode> nodes, TreeActionLocation<NestedSetsTreeNode> location)
          The implementation of this is expected to check the uniqueness of passed node(s).
 boolean UniqueChildrenConstraintImpl.checkUniqueConstraint(java.util.List<NestedSetsTreeNode> nodes, TreeActionLocation<NestedSetsTreeNode> location)
          The implementation of this is expected to check the uniqueness of passed node(s).
 boolean UniqueChildrenConstraintImpl.checkUniqueConstraint(java.util.List<NestedSetsTreeNode> nodes, TreeActionLocation<NestedSetsTreeNode> location)
          The implementation of this is expected to check the uniqueness of passed node(s).