GAE more than 3 attributes to filter?

Posted by Vik on Stack Overflow See other posts from Stack Overflow or by Vik
Published on 2011-01-15T12:01:34Z Indexed on 2011/01/15 16:53 UTC
Read the original article Hit count: 281

Filed under:

Hie

I am using GAE jdoql and wrote query like:

    Query query = pm.newQuery(BloodDonor.class);  
        query.setFilter(" state == :stateName && district == :distName &&" +
                " city == :cityName && bloodGroup == :blood");
        @SuppressWarnings("unchecked")
        List<BloodDonor> donors = (List<BloodDonor>) query.execute(state.toLowerCase(), district.toLowerCase(),
                city.toLowerCase(), bloodGroup.toLowerCase());

This doesnt work as execute method does not support more than 3 parameters. So how to pass more than 3

© Stack Overflow or respective owner

Related posts about gae-datastore