CatDisplayCategoryTable::checkNestedSetForRebuild Method
Checks the nested set values for the specified catalog to find whether a rebuild is necessary.
Syntax
client server public static boolean checkNestedSetForRebuild(RecId _catalog)
Run On
Called
Parameters
- _catalog
Type: RecId Extended Data Type
The record ID of the catalog to check.
Return Value
Type: boolean
A Boolean value that indicates whether a rebuild is needed.
Remarks
A rebuild is necessary when the nested set values violate their integrity. The left and right values of a child node are correctly in that of its parent node; the left and right values of two sibling nodes do not overlap.
Note: the caller should wrap the call to this method inside a transaction context.