mms:
In my opinion, the difference between pages 136 and 219-220 is the difference in database structure. The DB structure on page 136 is Hierarchial in structure while the DB structure on pages 219-220 is Relational. The author maintains the
process of modification or modifying the two different structures is the same:
- Step 1: Add or Update changes to the Parent Table, but no deletes;
- Step 2: Add, Update and Delete modifications to the Child Table;
- Step 3: Make Deletions to the Parent Table;
- Step 4: Then commit changes/updates to the Database.
The author notes on page 131 in Hierarchial Structure DB for modifications steps 2 and 3 are expanded and to proceed with caution. Due to the complex levels of the structure, one must save the all changes and deletions of the children, hence the if-statement:
- if (tableChanges != tableDeletes)
Hope this helps