Tuesday, February 4, 2014

How to apply view criteria programatically in Oracle ADF?

    public void getEmployeeById(Number employeeId) {
        EmployeesVOImpl empVO = getEmployeesView1();
        ViewCriteria vc = empVO.getViewCriteria("findEmployeeVC");
        vo.applyViewCriteria(vc);
        vo.setNamedWhereClauseParam("pEmployeeId", employeeId);
        vo.executeQuery();
    }

No comments:

Post a Comment