Class SaveContext


  • public class SaveContext
    extends Object
    The context of a save operation; might involve multiple entities (eg, batch save).
    Author:
    Jeff Schnitzer
    • Constructor Detail

      • SaveContext

        public SaveContext()
    • Method Detail

      • skipLifecycle

        public boolean skipLifecycle()
        Subclass can ignore lifecycle methods.
      • saveRef

        public com.google.cloud.datastore.Key saveRef​(Ref<?> value,
                                                      LoadConditions loadConditions)
        Callback that we found a Ref in the object graph. Subclasses of this context may want to do something special with this.