[appengine-java] Re: JDO request IN

2009-08-25 Thread objectuser
Bah, I didn't read clearly. That's quite interesting, if GAE supports it. midomarocain, have you tried it? Please let us know if it works. On Aug 25, 7:39 am, datanucleus wrote: > Yes you *can* do that. I already pointed out the query above, which > the user seems to ignore for some reason. >

[appengine-java] Re: JDO request IN

2009-08-25 Thread midomarocain
thanks you very much On 25 août, 12:43, datanucleus wrote: > > Yes you *can* do that. I already pointed out the query above, which > > the user seems to ignore for some reason. > > "IN" in Java equates to "collParam.contains(theField)" > > i.e this value is IN this collection. > > Obviously th

[appengine-java] Re: JDO request IN

2009-08-25 Thread datanucleus
> Yes you *can* do that. I already pointed out the query above, which > the user seems to ignore for some reason. > "IN" in Java equates to "collParam.contains(theField)" > i.e this value is IN this collection. Obviously that assumes that Google have implemented such a thing, though they could ea

[appengine-java] Re: JDO request IN

2009-08-25 Thread datanucleus
> Right, you won't be able to do that.  The underlying datastore doesn't > support "OR" queries (and "IN" -> "OR"). Yes you *can* do that. I already pointed out the query above, which the user seems to ignore for some reason. "IN" in Java equates to "collParam.contains(theField)" i.e this value i

[appengine-java] Re: JDO request IN

2009-08-25 Thread objectuser
Right, you won't be able to do that. The underlying datastore doesn't support "OR" queries (and "IN" -> "OR"). If the # of elements in inputParam is small, you could run a query for each one. Otherwise, you might want to consider storing the collection and reversing the query. On Aug 25, 4:16 

[appengine-java] Re: JDO request IN

2009-08-25 Thread midomarocain
the input param is a collection i want the equivallent of this request select * from X where fieldOfX in (inputParam) thanks in advance On 24 août, 14:28, datanucleus wrote: > An IN clause ? you mean you pass in a parameter ("inputParam") that is > a Collection and then say something like t

[appengine-java] Re: JDO request IN

2009-08-24 Thread datanucleus
An IN clause ? you mean you pass in a parameter ("inputParam") that is a Collection and then say something like this ? inputParam.contains(someFieldOfMyClass) That's Java, so is JDOQL. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th