Skip Headers
Oracle® Application Development Framework Developer's Guide For Forms/4GL Developers
10g (10.1.3.1.0)

Part Number B25947-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

9.5 Undoing Pending Changes to an Entity Using the Refresh Method

You can use the refresh(int flag) method on any Row to refresh pending changes it might have. The refresh() method's behavior depends on the flag that you pass as a parameter. The three key flag values that control its behavior are the following constants in the Row interface.

9.5.1 Controlling What Happens to New Rows During a Refresh

By default, any entity rows with New status that you refresh() are reverted back to blank rows in the Initialized state. Declarative defaults are reset, as well as programmatic defaults coded in the initDefaults() method, but the entity object's create() method is not invoked during this blanking-out process.

You can change this default behavior by combining one of the following two flags with one from the above section (using the bitwise-OR operator):

  • REFRESH_REMOVE_NEW_ROWS, new rows are removed during refresh.

  • REFRESH_FORGET_NEW_ROWS, new rows are marked Dead.

9.5.2 Cascading Refresh to Composed Children Entity Rows

You can cause a refresh() operation to cascade to composed child entity rows by bitwise-OR'ing the REFRESH_CONTAINEES flag with any of the valid flag combinations above. This causes the entity to invoke refresh() using the same mode on any composed child entities it contains.