Share via


CatDisplayCategoryTable::rebuildNestedSetForNode Method

Rebulids the nested set values for the whole subtree rooted at the given node.

Syntax

client server public static real rebuildNestedSetForNode(CatDisplayCategoryTable _currNode, real _lv4curr)

Run On

Called

Parameters

  • _lv4curr
    Type: real
    The left value to use in the root node of the subtree to rebuild.

Return Value

Type: real
The right value to use in the root node of the subtree during the rebuild.

Remarks

The ParentCategory field in the nodes must have been correctly set.

Note: the caller should wrap the call to this method inside a transaction context.

If this method is called by the insert method, the insert method must have called the super method. This means the records are already in the database. The doUpdate method is called on all nodes as part of the build.

See Also

Reference

CatDisplayCategoryTable Table