Hi,
I'm using v8.3p_2013-05-12/PowerEdition Deployment (built 2013-05-12) with PostgreSQL 9.2.2, Firefox 20.0.1 and Tomcat 7.0.33.
In a couple of my DataSources I'm interested in using the criteria feature of operationBinding to restrict the set of data returned. I have seen examples which do this like:
I want to use more complicated Criteria in the operation binding.
I have the case where I want to only return records which match a list of valid values. In Java I can do something like:
And I'm interested in typical AdvancedCriteria such as:
What is the syntax for including these two types of criteria in the operationBinding criteria clause?
Thanks,
Kevin
I'm using v8.3p_2013-05-12/PowerEdition Deployment (built 2013-05-12) with PostgreSQL 9.2.2, Firefox 20.0.1 and Tomcat 7.0.33.
In a couple of my DataSources I'm interested in using the criteria feature of operationBinding to restrict the set of data returned. I have seen examples which do this like:
Code:
<operationBinding operationType="fetch"> <criteria fieldName="deleted" value="false"/> </operationBinding>
I have the case where I want to only return records which match a list of valid values. In Java I can do something like:
Code:
new Criterion("eventtype", OperatorId.EQUALS, new Integer[]{2, 4, 5, 11});
Code:
new AdvancedCriteria(OperatorId.OR, new Criterion[]{ new Criterion("eventtype", OperatorId.EQUALS, 2), new Criterion("nodetype", OperatorId.EQUALS, 4) });
Thanks,
Kevin
Comment