How Can I Dynamically Change a Query?

We’ve seen how view objects can be created to define multiple queries of records cached in the entity objects, but we know that fixed queries will not suffice. Most applications require functions, which need to be customized at runtime, for example, a search function where the results are based on the criteria specified through the UI.

TIPThe rest of this chapter requires writing Java code to interface with the ADF Business Components APIs. You can find more information about these APIs in the JDeveloper help system. Search the Contents tab for the topic “Reference\ Oracle ADF Business Components Java API Reference.”

Fortunately, you can customize the view object to accommodate this requirement. As you saw ...

Get Oracle JDeveloper 10g for Forms & PL/SQL Developers: A Guide to Web Development with Oracle ADF now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.