This content has been marked as final. Show 6 replies
ADF7,1 person found this helpful
the natural thing to do would be to implement a base EOImpl class which holds this function and extend all other EntiyImpl classes from this base class. This way the function can be executed from each EO which extends from the base EO.
yeah nice idea.. little bit know about extending class. ok fine.
my question: by default framework provide any functionality to access them AM objects in Eo method validator .?
In theory you can access the AM from the EO but you should not. An EO represents one row of a table whereas the AM represents the the whole business logic. From this point of view where is no reason why an EO should need access to the AM.
Extending is a normal java mechanism which is wildly uses in frameworks. If you read the dev guide you'll find a paragraph which encourages you to build an extension for each framework class (for just this reason). This extension classes can hold all the stuff which is global for your application.
well i want to go through that section jdev book.s
but i h'd a jdev handbook i search over extension of class. but no search found.
so if you dont mind, could post me link. of revelent section.
Edited by: ADF7 on Apr 16, 2012 7:22 AM
Here you go http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvgen.htm#sm0291
The link is for jdev 188.8.131.52 but if you look in the dev guid for hte same topic you should find it in there too.
thanks timo, bravo :)