Class DeferredImpl
- java.lang.Object
-
- com.googlecode.objectify.impl.DeferredImpl
-
-
Constructor Summary
Constructors Constructor Description DeferredImpl(ObjectifyImpl ofy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeferredDeleter
delete()
Start a deferred delete command chain.DeferredSaver
save()
Start a deferred save command chain.
-
-
-
Constructor Detail
-
DeferredImpl
public DeferredImpl(ObjectifyImpl ofy)
-
-
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.
-
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.
-
-