• EJB
    June 27, 2011

Create named criteria in EJB Data control

This article gives the detailed steps on creating named criteria in EJB Data control.Note that this feature is available in Jdev version

Use Case Description

Suppose we have defined an EJB Entity Object & we would like to filter the Entity object based on some criteria,then this filtering can be achieved by creating named criteria in EJB Data Control.

Implementation steps

Let us suppose that we have created Java EE Web Application with Entities from Emp table


Create session bean,generate data control for the same


Edit empFindAll in DataControls.dcx file


Create simple Named Criteria: deptno>=20


Create on '+' icon to create Named Criteria:

Refresh the Data Controls & create a new jspx page.Drop EmpCriteria as ADF Query Panel with Table


Run the page,click on search button & we will see that Emp table shows filtered records

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.