You can look at the local datastore at localhost:8888/_ah/admin Also if you are storing things in an arraylist you should be using pm.makePersistentAll(gcalendar). This is because this is only one api call instead of how ever many objects are in your arraylist, plus its less code. to erase entries you can use the datastore viewer or delete the local datastore which is descrbed well in this answer on stackoverflow http://stackoverflow.com/questions/1062540/how-to-delete-all-datastore-in-google-app-engine/1062553#1062553
On Jan 15, 3:05 am, soujiro0725 <[email protected]> wrote: > Hi I'm a newbie in App Engine. > Right now, I am trying to develop an application myself, but my basic > understanding is weak. So someone, please clarify my knowledge. > > The question is HOW to store the data and to know what is stored. > > Say, I have my own class like, > > GCalendar(String date, String day, String time, String content) > > The variable "date" can be either a Date object or simply a String > object as long as the information (such as "2010/12/14") can be stored > and retrieved. > > Since an instance of this class represents one event, I want an array > of this class like, > > List<GCalendar>gcalendar = new ArrayList<GCalendar>(); > > After obtaining data, I want to store them into Bigtable, so > > //----------------------------- > PersistenceManager pm = PMF.get().getPersistenceManager(); > for (int j = 0; j < gcalendar.size(); j++){ > try { > pm = PMF.get().getPersistenceManager(); > pm.makePersistent(gcalendar.get(j)); > } finally { > pm.close(); > }} > > //----------------------------- > Is this enough? > > The reason I'm asking is that I have no idea what is being stored as > the instance, namely "pm". > GCalendar object, maybe? > > Once the program is executed, it seems like some data is stored, even > if a part of it produces errors. > > How can I erase the entire data in order to start from scratch? > > If I can find out what is now stored with PersistenceManager, it seems > easier to continue fixing errors. > > soujirou -- 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.
