Thank you for your help!
The development has become a lot easier now.

soujiro

On 1月20日, 午前1:56, WillSpecht <willspe...@gmail.com> wrote:
> 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
> stackoverflowhttp://stackoverflow.com/questions/1062540/how-to-delete-all-datastor...
>
> On Jan 15, 3:05 am, soujiro0725 <soujiro0...@gmail.com> 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 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