Class DeferredImpl

  • All Implemented Interfaces:
    Deferred

    public class DeferredImpl
    extends Object
    implements Deferred
    Implementation of the Deferrer interface.
    Author:
    Jeff Schnitzer
    • Constructor Detail

    • Method Detail

      • save

        public DeferredSaver save()
        Description copied from interface: Deferred

        Start a deferred save command chain. Allows you to save (or re-save) entity objects. Note that all command chain objects are immutable.

        Saves do NOT cascade; if you wish to save an object graph, you must save each individual entity.

        A quick example: ofy().defer().save().entities(e1, e2, e3);

        All command objects are immutable; this method returns a new object rather than modifying the current command object.

        Specified by:
        save in interface Deferred
        Returns:
        the next step in the immutable command chain.
      • delete

        public DeferredDeleter delete()
        Description copied from interface: Deferred

        Start a deferred delete command chain. Lets you delete entities or keys.

        Deletes do NOT cascade; if you wish to delete an object graph, you must delete each individual entity.

        A quick example: ofy().defer().delete().entities(e1, e2, e3);

        All command objects are immutable; this method returns a new object rather than modifying the current command object.

        Specified by:
        delete in interface Deferred
        Returns:
        the next step in the immutable command chain.