Class ResaveEntitiesCommand

  • All Implemented Interfaces:
    Command, CommandWithRemoteApi

    public final class ResaveEntitiesCommand
    extends MutatingCommand
    A command to load and resave an entity by websafe key.

    This triggers @OnSave changes. If the entity was directly edited in the Datastore viewer, this can be used to make sure that the commit logs reflect the new state.

    • Constructor Detail

      • ResaveEntitiesCommand

        public ResaveEntitiesCommand()
    • Method Detail

      • init

        protected void init()
        Description copied from class: MutatingCommand
        Initializes the command.

        Subclasses override this method to populate MutatingCommand.changedEntitiesMap with updated entities. The old entity is the key and the new entity is the value; the key is null for newly created entities and the value is null for deleted entities.

        Specified by:
        init in class MutatingCommand