- Inheritance in Oracle ADF Business Components. If necessary, in Oracle ADF Business Components it is possible to use inheritance. Inheritance is especially useful when iterative approach for project implementation is used and requirements aren't stable. For example, let's say primary requirement was to display records for all employees. Later, analyst has asked to implement functionality of filtering employees by salary value. In this case, instead of creating completely new two additional View objects, you can extend existent View object. I have created sample application which shows how you can use inheritance with your business components.
Download - BC_Inheritance.zip
2 comments:
Hi Andrejus,
I don't know if it the right place but it is related with View Object.
We now how to insert programmaticly
a row in a data bas using viewObject:
AppM=Configuration.
createRootApplicationModule
(DefModule, config);
vo=AppM.findViewObject("ViewName");
Saff = vo.createRow();
Saff.setAttribute("",1);
AppM.getTransaction().commit();
Configuration.releaseRootApplicationModule
(AppM, true);
How to perform Delete action for a specified Row
Thanks
Hi,
To remove row specified by key, you can use similar code:
ViewObject vo = getSomeViewObject();
Row[] rowToDelete = vo.findByKey(key, 1);
if(rowToDelete == null || rowToDelete.length == 0) {
return;
}
rowToDelete[0].remove();
getDBTransaction().commit();
Regards,
Andrejus
Post a Comment