Hi king,
On Fri, Oct 23, 2009 at 4:21 AM, king <[email protected]> wrote:
>
> Thanks Yasuo, it works! Do you know how I can set filter for multiple
> keys? that is, how I can do something like:
> query.setFilter("detailKeySet.contains(:keyList)");
>
In case of a primary key field, you can use a filter of multiple keys
as follows:
PersistenceManager pm = PMF.get().getPersistenceManager();
Query query = pm.newQuery(Master.class);
// "key" is a name of a primary key field.
query.setFilter("key == :keyList");
List<Master> list = (List<Master>) query.execute(keyList);
Hope this helps,
Yasuo Higa
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---