Pages - Menu

Thursday, September 12, 2013

How to Search in Views - Part 1 || Oracle ADF

It’s the first time that I publish in my blog .. I am happy to offer my experiences in the field of Oracle SOA,ADF,SQL & PL SQL ..

Let us Start today with a small topic for ADF Developers, with how to use PK (Primary Key) to search your Values.

we have some built in functions we use to access VOs & search the items, Examples (findByKey,findByAltKey,findByViewCriteria & findByViewCriteriaWithBindVars)
we will start with findByKey, FindByKey Fetches the requested record by primary key and returns it as an object. Returns false if no record is found.
  • Create New Test Application including Employees Table of HR Schema, composing EOs & VOs.
  • Start & Customize Impl Class of AM.
  • create String Method to Return Value based on PK Value as a method parameter as we see this below image.
  • Let us see the result ..