Class SaveContext
java.lang.Object
com.googlecode.objectify.impl.translate.SaveContext
public class SaveContext extends Object
The context of a save operation; might involve multiple entities (eg, batch save).
- Author:
- Jeff Schnitzer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Map<Path,Collection<Object>>
com.google.appengine.api.datastore.Key
saveRef(Ref<?> value, LoadConditions loadConditions)
Callback that we found a Ref in the object graph.boolean
Subclass can ignore lifecycle methods.void
Called at the beginning of each entity save.
-
Constructor Details
-
SaveContext
public SaveContext()
-
-
Method Details
-
addIndex
- Parameters:
object
- can be either a single thing or an iterable list of things to index at this path
-
getIndexes
-
skipLifecycle
public boolean skipLifecycle()Subclass can ignore lifecycle methods. -
saveRef
Callback that we found a Ref in the object graph. Subclasses of this context may want to do something special with this. -
startOneEntity
public void startOneEntity()Called at the beginning of each entity save. In a batch save, this will be called more than once.
-