O'Reilly logo

Oracle ADF 11gR2 Development Beginner's Guide by Vinod Krishnan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – learning to override a method

The following steps will show how to override a method from the class and then write our own logic in the method. We will have EmpDirectoryModuleImpl as our example here:

  1. Right-click on the EmpDirectoryModuleImpl class and select the Source option.
  2. Click on the Override Methods… option to override the operations from the base class.
  3. Type in the method name, for example befo, in the search box that will fetch methods starting with that literal.
  4. Check the beforeCommit() operation and click on OK.
  5. Add the following code:
    ViewObject vo = findViewObject("EmpVO3");
    vo.clearCache();
    vo.executeQuery();
    Time for action – learning to override a method
  6. This code ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required