Folks,

In my GAE datastore, the "Users" table contains two fields - email addr and 
counter. Each time a user accesses a specific object, I need to increment 
the counter. The logic is as follows:

1. SELECT Email, Counter FROM Users Where Email = emailAddr
2. If record not found, create one and set counter value to 1
3. If record found, increment the counter value and save it back.

I am wondering what is the best way to achieve this in Java.

Thank you in advance for your help.

Regards,
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