Row manipulation in DataModel
We've come across a use case for row manipulation in the DataModel (adding rows, removing rows, rearranging rows, etc).
We have a DataModel that contains a row for each phone number associated with a customer. The DataModel is pre-sorted according to the user's preferences (primary phone number listed first, secondary second, etc). The user can change what phone number is their primary phone number, which would then cause a rearranging of rows.
We are also going to need to be able to add and remove rows, of course, for when the customer wants to add phone numbers and/or remove them.
RowSet of course has methods for adding and removing rows, but off the top of my head I don't remember any rearrange methods (moveRow or something of that nature).
I'm in favor of some simple methods like addRecord, removeRecord/deleteRecord, and moveRecord(int newIndex).