A query has to specify an entity kind as its minimum parameter, and
then doing a count and seeing if its equal to zero for a known entity
kind would be the best way.

On Mar 13, 1:44 pm, vchalmel <[email protected]> wrote:
> hi !
>
> I want to set up an initialization script, and i must, in a first
> part, check if the appengine datastore is empty.
> I tried to send a query, with :
>
> query.setUnique(true);
> if(query.execute()==null)
>
> But it throws a null pointer exception.
>
> How to check that my datastore is empty ?

-- 
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.

Reply via email to