Class DeferredSaverImpl

java.lang.Object
com.googlecode.objectify.impl.DeferredSaverImpl
All Implemented Interfaces:
DeferredSaver

public class DeferredSaverImpl extends Object implements DeferredSaver
Implementation of the DeferredSaver interface.
Author:
Jeff Schnitzer invalid input: '<'[email protected]>
  • Constructor Details

    • DeferredSaverImpl

      public DeferredSaverImpl(ObjectifyImpl ofy)
  • Method Details

    • entity

      public void entity(Object entity)
      Description copied from interface: DeferredSaver

      Save a single entity in the datastore at the end of the current unit-of-work.

      This method can be called multiple times on a single entity; that will produce a single save. If deferred saves and deletes are applied to an entity, the last one wins.

      If the entity has a null Long id, the value will be autogenerated and populated on the entity object when the operation completes. Since this is a deferred operation, that will be past the end of your unit-of-work (transaction boundary).

      Saves do not cascade.

      Specified by:
      entity in interface DeferredSaver
      Parameters:
      entity - must be a registered entity type
    • entities

      public void entities(Object... entities)
      Description copied from interface: DeferredSaver
      A convenience method for entities(Iterable)
      Specified by:
      entities in interface DeferredSaver
    • entities

      public void entities(Iterable<?> entities)
      Description copied from interface: DeferredSaver

      Save a batch of entities in the datastore at the end of the current unit-of-work.

      This method can be called multiple times on a single entity; that will produce a single save. If deferred saves and deletes are applied to an entity, the last one wins.

      If any entities have null Long ids, the values will be autogenerated and populated on the entity objects when the operation completes. Since this is a deferred operation, that will be past the end of your unit-of-work (transaction boundary).

      Saves do not cascade.

      Specified by:
      entities in interface DeferredSaver
      Parameters:
      entities - must be registered entity types