Modifier and Type | Field and Description |
---|---|
static NullPopulator |
INSTANCE |
Constructor and Description |
---|
NullPopulator() |
Modifier and Type | Method and Description |
---|---|
void |
load(com.google.cloud.datastore.FullEntity<?> node,
LoadContext ctx,
Path path,
Object into)
Loads the content of the specified datastore node into an existing POJO.
|
void |
save(Object pojo,
boolean index,
SaveContext ctx,
Path path,
com.google.cloud.datastore.FullEntity.Builder<?> into)
Saves data from the POJO into the entity builder.
|
public static NullPopulator INSTANCE
public void load(com.google.cloud.datastore.FullEntity<?> node, LoadContext ctx, Path path, Object into)
Populator
Loads the content of the specified datastore node into an existing POJO.
public void save(Object pojo, boolean index, SaveContext ctx, Path path, com.google.cloud.datastore.FullEntity.Builder<?> into)
Populator
save
in interface Populator<Object>
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 valuespath
- 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).Copyright © 2019. All rights reserved.