posted 15 years ago
Hi All,
I have an Object Model Design question and would like to brainstorm with you guys.
Users can View/Add/Delete a list of Security Instrument(with unique key) from GUI. I would like to construct an Object Model so that it will perform a diff action between Retrieved List and Modified List of Instrument Objects once user hit the save button from GUI, and the Model should return how many records that I should delete/insert or Do Nothing. For example, the list might contain Google, CITI and Microsoft originally, and then the user modified the list so that CITI was removed and GE was added.
What's the best way to implement such Data Model ? Should I override the Comparable Object and Implement my diff logc in there ?
Please let me know you thoughts, thanks.
Cheers,
Transistor