Class WriteEngine

java.lang.Object
com.googlecode.objectify.impl.WriteEngine

public class WriteEngine
extends Object
This is the master logic for saving and deleting entities from the datastore. It provides the fundamental operations that enable the rest of the API. One of these engines is created for every operation; upon completion, it is thrown away.
Author:
Jeff Schnitzer
  • Field Details

    • ofy

      protected final ObjectifyImpl<?> ofy
    • ads

      protected final com.google.appengine.api.datastore.AsyncDatastoreService ads
    • session

      protected final Session session
    • deferrer

      protected final Deferrer deferrer
  • Constructor Details

    • WriteEngine

      public WriteEngine(ObjectifyImpl<?> ofy, com.google.appengine.api.datastore.AsyncDatastoreService ads, Session session, Deferrer deferrer)
  • Method Details

    • save

      public <E> Result<Map<Key<E>,​E>> save(Iterable<? extends E> entities)
      The fundamental put() operation.
    • delete

      public Result<Void> delete(Iterable<com.google.appengine.api.datastore.Key> keys)
      The fundamental delete() operation.