for every row you should have a flag(false). and update this flag(true) in the setValueAt method.
So when you save(ie click a button to save), just take out the rows which have this flag true;
Similarly if you want to go cell level, then you should be having a flag for each cell. I guess there is no other work around direct from the API.