Below is the code snippet to execute view criteria in your VOImpl
ViewCriteria vc = this.getViewCriteriaManager().getViewCriteria("DeptVOCriteria");
//Manages named variables and their values.
VariableValueManager vvm = vc.ensureVariableManager();
// Set bind parameter values
vvm.setVariableValue("bindDept", <dept value>);
//apeend View Criteria
this.appendViewCriteria(vc);
// Executing the query
this.executeQuery();
ViewCriteria vc = this.getViewCriteriaManager().getViewCriteria("DeptVOCriteria");
//Manages named variables and their values.
VariableValueManager vvm = vc.ensureVariableManager();
// Set bind parameter values
vvm.setVariableValue("bindDept", <dept value>);
//apeend View Criteria
this.appendViewCriteria(vc);
// Executing the query
this.executeQuery();
No comments:
Post a Comment