User Tools

Site Tools


update_prepare_records_for_writing_to_disk_.htm
Navigation:  ABC Library Reference > WindowManager > WindowManager Methods >====== Update (prepare records for writing to disk) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

Update, VIRTUAL

blk2blue.jpg

The Update method prepares the WindowManager's FILE and VIEW records for writing to disk by synchronizing buffer contents with their corresponding screen values. The Update method also arms automatic optimistic concurrency checking so an eventual write (PUT) to disk returns an error if another user changed the data since it was retrieved.

Implementation:

The Update method calls BrowseClass.UpdateViewRecord for each BrowseClass object added by the AddItem method.

Example:

ThisWindow.TakeAccepted PROCEDURE()

Looped BYTE

CODE

LOOP

 IF Looped

  RETURN Level:Notify

 ELSE

  Looped = 1

 END

 PARENT.TakeAccepted()

 CASE ACCEPTED()

 OF ?Expand

  ThisWindow.Update

  ?CusTree{PropList:MouseDownRow} = CHOICE(?CusTree)

  DO REL1::ExpandAll

 OF ?Contract

  ThisWindow.Update

  ?CusTree{PropList:MouseDownRow} = CHOICE(?CusTree)

  DO REL1::ContractAll

 OF ?Insert

  ThisWindow.Update

  ?CusTree{PropList:MouseDownRow} = CHOICE(?CusTree)

  DO REL1::AddEntry

 OF ?Change

  ThisWindow.Update

  ?CusTree{PropList:MouseDownRow} = CHOICE(?CusTree)

  DO REL1::EditEntry

 OF ?Delete

  ThisWindow.Update

  ?CusTree{PropList:MouseDownRow} = CHOICE(?CusTree)

  DO REL1::RemoveEntry

 END

 RETURN Level:Benign

update_prepare_records_for_writing_to_disk_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1