CatDisplayCategoryTable.isImmediateChildOfPerNSL Method
Checks if the record is an immediate child of the given parentCategoryFromDB record using only nested set values.
Syntax
public boolean isImmediateChildOfPerNSL(CatDisplayCategoryTable _parentCategoryFromDB)
Run On
Called
Parameters
- _parentCategoryFromDB
Type: CatDisplayCategoryTable Table
The record as the candidate parent of the record.
Return Value
Type: boolean
true if the record is an immediate child of the given parentCategoryFromDB record; otherwise, false.
Remarks
The ParentCategory field in the record must not be used for the checking because it might have been changed.
The TreeLevel, NestedSetLeft and NestedSetRight fields on the record still have valid values and can be used for checking.