Interface Deferred
- All Known Implementing Classes:
DeferredImpl
public interface Deferred
The top element in the command chain for deferred operations.
- Author:
- Jeff Schnitzer
-
Method Details
-
save
DeferredSaver save()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.
- Returns:
- the next step in the immutable command chain.
-
delete
DeferredDeleter delete()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.
- Returns:
- the next step in the immutable command chain.
-