Thanks. I've tried it but it is pretty slow if I have to control it
this way.
The problem I met is when I create an object and its ID is, say 1, if
I run my application again, the ID becomes 2.
How can I let my application have refreshed new database everytime?
Because if it keeps adding the objects, it will exceed the quota
anyway, isn't it?
Here is my code. Everytime I run my application, 'id' will increment
by 1.
PersistenceManager pm = PMF.get().getPersistenceManager();
String title = "welcome";
document doc = new document(title);
try{
pm.makePersistent(doc);
System.out.println("id is "+doc.getID());
}finally{
pm.close();
}
On Jun 29, 1:35 pm, Didier Durand <[email protected]> wrote:
> Hi Lu,
>
> You can see the content of the database and delete it all from the App
> Engine Console
>
> https://appengine.google.com/dashboard?&app_id=yourappid[Adapt
> yourappid to yours] and then go to Datastore Viewer or Datastore
> Statistics
>
> regards
> didier
>
> On Jun 28, 4:56 pm, Lu <[email protected]> wrote:
>
>
>
> > Hi,
>
> > How can I delete all the objects existed in the database? That means I
> > want my application to have a empty database everytime when it gets
> > started.
>
> > Is there anywhere actually we can see the content of the database?
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -
--
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.