Monday, February 28, 2011

Difference between flush() and flushrow() methods in rowset

when i am working in PeopleTools tables for the specific requirement,
I've used flush() function to clear the rowset & saved the component. I though data might be deleted from the database but its dint.

Then used flushrow() to delete the row from the buffer & saved the component. Then the row got deleted from DB.

So the diff between these two is:

1. Flush will delete the rowset in buffer context & 'll not saved to the database(eventhough saved entire component).

2. Flushrow delete the row buffer, when you save the component the row got deleted from db too.

Using Flush more advantageous then Flushrow. Flush is not data Destructive.

No comments: