// WITHOUT altering the source, e.g. the database
virtual void UnLoad(tree::Node* n);
///====================================================================
-
+
+ //====================================================================
+ /// Returns the top level node id for the given search param and search value
+ virtual void GetTopLevelNodeId(const std::string& searchParam,
+ const std::string& searchValue,
+ std::string& parent_id);
+ ///====================================================================
//====================================================================
// WRITE METHODS : WORK ONLY IN WRITE MODE
void DBDelete(std::string levelDescriptor, std::string key, std::string value);
//======================================================================
+ //======================================================================
/// Recursively Removes the nodes whose parent is given as a parameter
void DBRecursiveRemoveNode(tree::Node* node);
+ /// Recursively Removes the nodes found in the given level with the given parent id
+ void DBRecursiveRemoveNode(int level, std::string parentId);
+
+ //======================================================================
+
/*
///
int DBQueryNumberOfChildren(tree::Node* n);