How does BusinessEntity super class find records to update? - Forum - OpenEdge Architecture - Progress Community

How does BusinessEntity super class find records to update?

 Forum

How does BusinessEntity super class find records to update?

This question is not answered

If my data access layer calls the super class method "UpdateData" and passes a temp-table via a dataset, how are the records from the temp-table read from and updated to the db?

I would think something like some sort of rowid would be attached to the table?

All Replies
  • Not sure about your Business Entity implementation.
     
    But if it involves ProDatasets and DATA-SOURCE object handles, the mapping may be defined based on KEY fields (automatic mapping or KEYS phrase in the DEFINE DATA-SOURCE statement) or ROWID.

    Architect of the SmartComponent Library and WinKit

    Consultingwerk Ltd.

  • I'm not sure. I'll have to dig deeper to see how it's setup. Right now, we are using the default SUPER class.

  • Basically, for Create, Update and Delete operations the BE assumes all the records passed in are to be updated.

    For Submit operations, the BE requires the dataset's tables to have before-image records.

    The BE's CommitRows() method does this IIRC.