Package com.googlecode.objectify.impl
Class Deferrer
- java.lang.Object
-
- com.googlecode.objectify.impl.Deferrer
-
public class Deferrer extends Object
Manages all the logic of deferring operations
-
-
Constructor Summary
Constructors Constructor Description Deferrer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deferDelete(ObjectifyOptions options, Key<?> key)
void
deferSave(ObjectifyOptions options, Object entity)
void
flush(ObjectifyImpl ofy)
void
undefer(ObjectifyOptions options, Object keyOrEntity)
Eliminate any deferred operations against the entity.
-
-
-
Method Detail
-
undefer
public void undefer(ObjectifyOptions options, Object keyOrEntity)
Eliminate any deferred operations against the entity. Used when an explicit save (or delete) was executed against the key, so we no longer need the deferred operation.- Parameters:
keyOrEntity
- can be a Key, Key>, Entity, or entity pojo
-
deferSave
public void deferSave(ObjectifyOptions options, Object entity)
-
deferDelete
public void deferDelete(ObjectifyOptions options, Key<?> key)
-
flush
public void flush(ObjectifyImpl ofy)
-
-