Class NullPopulator

java.lang.Object
com.googlecode.objectify.impl.translate.NullPopulator
All Implemented Interfaces:
Populator<Object>

public class NullPopulator extends Object implements Populator<Object>

Populator which does nothing.

Author:
Jeff Schnitzer invalid input: '<'[email protected]>
  • Field Details

  • Constructor Details

    • NullPopulator

      public NullPopulator()
  • Method Details

    • load

      public void load(com.google.cloud.datastore.FullEntity<?> node, LoadContext ctx, Path path, Object into)
      Description copied from interface: Populator

      Loads the content of the specified datastore node into an existing POJO.

      Specified by:
      load in interface Populator<Object>
      Parameters:
      node - is the part of the native datastore entity tree we are transforming.
      ctx - holds state information during an entity load.
      path - is the current path to this POJO
    • save

      public void save(Object pojo, boolean index, SaveContext ctx, Path path, com.google.cloud.datastore.FullEntity.Builder<?> into)
      Description copied from interface: Populator
      Saves data from the POJO into the entity builder.
      Specified by:
      save in interface Populator<Object>
      Parameters:
      pojo - is an object from the pojo entity graph; possibly the whole graph or possibly just a leaf field.
      index - is whether the instruction so far is to index or not index property values
      path - is the path that we have taken to get here, which could be long due to re-entrant translators (ie, an embedded pojo that also has a reference to the same class).