Refreshing Entities and View Objects when user calls Commit and Rollback Operation

Refreshing Entities and View Objects when user calls Commit and Rollback Operation

Sometimes we need to refresh all View Objects based tables when a user calls Commit and Rollback Operation. Now, what happens   actually is,  it refreshes Entity and View Object Cache from the database. To perform this trick, I’m going to explain a very simple way of using ADF Business Component Application Module :

There are two properties on AM.

  1. ClearCacheOnRollback
  2. ClearCacheOnCommit

You have to set these properties on Application Module xml file.

Go to model project , double click on Application Module,  select source tab and set above properties in side <AppModule> tag as shown in the screenshot below.

refreshing entities

About Manish Pandey

Manish is a Project Leader at Jagran Prakashan Ltd, focused on Jdeveloper Fusion Web Application(specifically Oracle ADF). He shares his knowledge through the OTN Jdev/ADF Forum. He has written more than 50 article about Oracle ADF and Jdeveloper.

Leave a Reply