Creating view criteria programmatically

View criteria augment the view object's WHERE clause by appending additional query conditions to it. They work in conjunction with the af:query ADF Faces UI component to provide query-by-example support to the frontend user interface. View criteria can be created declaratively in JDeveloper in the Query section of the view object definition by clicking on the Create new view criteria button (the green plus sign icon) in the View Criteria section. Programmatically, the ADF-BC API supports the manipulation of view criteria among others via the ViewCriteria , ViewCriteriaRow , and ViewCriteriaItem classes, and through a number of methods implemented in the ViewObjectImpl class. This technique comes ...

Get Oracle JDeveloper 11gR2 Cookbook 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.