This discussion is archived
5 Replies Latest reply: Sep 19, 2013 5:21 AM by Jan Vervecken RSS

what to expect from getApplicationModule() method

Jan Vervecken Journeyer
Currently Being Moderated

hi

 

What exactly can be expected from getApplicationModule() methods

at http://docs.oracle.com/cd/E28280_01/apirefs.1111/e10653/oracle/jbo/RowSet.html#getApplicationModule%28%29

also implemented in ViewObjectImpl

see http://docs.oracle.com/cd/E28280_01/apirefs.1111/e10653/oracle/jbo/server/ViewObjectImpl.html#getApplicationModule%28%29

 

which says "... if you call this method on a row set which is the result of calling a View Link accessor, it will return the root application module ..."

 

But, what does not seem to be documented is what type (class) of Application Module instance can be expected.

 

The Application Module instance class does not seem to be consistent over JDeveloper releases:

 

Using the example application created using JDeveloper 11.1.1.7.0

at http://www.consideringred.com/files/oracle/2013/WhichApplicationModuleApp-v0.01.zip

 

- in JDeveloper 11.1.1.7.0 the Application Module instance class is "HRCountriesServiceImpl" where "HRDepartmentsServiceImpl" could be expected

see http://www.consideringred.com/files/oracle/img/2013/WhichApplicationModuleApp-v001-JDev111170-20130910.png

 

- in JDeveloper 11.1.2.4.0 the Application Module instance class is "HRDepartmentsServiceImpl" where it is "HRCountriesServiceImpl" in JDeveloper 11.1.1.7.0

see http://www.consideringred.com/files/oracle/img/2013/WhichApplicationModuleApp-v001-JDev111240-20130910.png

 

- in JDeveloper 12.1.2.0.0 the Application Module instance class is "HRDepartmentsServiceImpl" where it is "HRCountriesServiceImpl" in JDeveloper 11.1.1.7.0

see http://www.consideringred.com/files/oracle/img/2013/WhichApplicationModuleApp-v001-JDev121200-20130910.png

 

This observation seems to imply that no assumptions (or only limited assumptions) can be made about the Application Module instance (type) to which a View Object instance belongs.

 

Any authoritative feedback, or pointers to relevant documentation to clarify this are welcome.

 

many thanks

Jan Vervecken

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points