Isomorphic,
I would like to know if I can pass generic objects, say a Student object as part of criteria. I would like to use this object in DMI. The addCriteria method on Criteria class only allows Strings, Int, Float etc..and arrays of all these types but not generic objects. Any way to pass objects to DMI from client side.
Another observation: When I push in a variable via addCriteria method on criteria on client side, set it to a String array and don't define it in the ds.xml file, like: criteria.addCriteria("XYZ", new String[]{"A","B","C"}) , here XYZ not defined in ds.xml file. I don't want XYZ to be used in where clause generation which works fine. But the problem is the variable XYZ turns up in the DMI as a String with the first array element as the value - "A in this case". Is this behavior correct.
Thanks.
I would like to know if I can pass generic objects, say a Student object as part of criteria. I would like to use this object in DMI. The addCriteria method on Criteria class only allows Strings, Int, Float etc..and arrays of all these types but not generic objects. Any way to pass objects to DMI from client side.
Another observation: When I push in a variable via addCriteria method on criteria on client side, set it to a String array and don't define it in the ds.xml file, like: criteria.addCriteria("XYZ", new String[]{"A","B","C"}) , here XYZ not defined in ds.xml file. I don't want XYZ to be used in where clause generation which works fine. But the problem is the variable XYZ turns up in the DMI as a String with the first array element as the value - "A in this case". Is this behavior correct.
Thanks.
Comment