O'Reilly logo

Essential App Engine: Building High-Performance Java Apps with Google App Engine by Adriaan de Jonge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10: Storing Data in the Datastore and Blobstore

This chapter demonstrates how to write code to communicate with the Google App Engine datastore and the Blobstore. It builds on the theory presented in Chapter 4, “Data Modeling for the App Engine Datastore.” It starts with storing, querying, and retrieving data synchronously. Next, the changes in the code to process data asynchronously are presented. Two simple examples demonstrate how to work with multitenancy and transactions. Finally, storing, querying, and retrieving blobs from the Blobstore are demonstrated.

Processing Data Synchronously

Google provides three APIs to work with the datastore: Java Data Objects (JDO), Java Persistence API (JPA), and the low-level API. In addition, the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required