Have a look at the Query class; you can use the id/key in the query.  
http://xrl.in/3m1e  http://xrl.in/3m1f


Peter Recore wrote:
> Is there a way to delete an entity without having to fetch it from the
> datastore first?
> Ideally, there would be a deleteObjectById analogue to getObjectById
> on PersistenceManager.
> 
> The closest I can think of is using Query.deletePersistentAll() and
> specifying a keys only query, but I can't tell if that is going to
> fetch the entity before deleting it.
> 
> -peter
> > 

--~--~---------~--~----~------------~-------~--~----~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to