Constructor and Description |
---|
PropertyPopulator() |
Modifier and Type | Method and Description |
---|---|
LoadConditions |
getLoadConditions() |
com.google.cloud.datastore.Value<D> |
getValue(Object pojo,
SaveContext ctx,
Path containerPath)
Get the value for the property and translate it into datastore format.
|
void |
load(com.google.cloud.datastore.FullEntity<?> container,
LoadContext ctx,
Path containerPath,
P intoPojo)
Gets the appropriate value from the container and sets it on the appropriate field of the pojo.
|
void |
save(P onPojo,
boolean index,
SaveContext ctx,
Path containerPath,
com.google.cloud.datastore.FullEntity.Builder<?> into)
Gets the appropriate field value from the pojo and puts it in the container at the appropriate prop name
and with the appropriate indexing.
|
void |
setValue(Object pojo,
com.google.cloud.datastore.Value<D> value,
LoadContext ctx,
Path containerPath)
Set this raw datastore value on the relevant property of the pojo, doing whatever translations are necessary.
|
String |
toString()
This is easier to debug if we have a string value
|
public LoadConditions getLoadConditions()
public String toString()
public void load(com.google.cloud.datastore.FullEntity<?> container, LoadContext ctx, Path containerPath, P intoPojo)
public void setValue(Object pojo, com.google.cloud.datastore.Value<D> value, LoadContext ctx, Path containerPath) throws SkipException
SkipException
public void save(P onPojo, boolean index, SaveContext ctx, Path containerPath, com.google.cloud.datastore.FullEntity.Builder<?> into)
public com.google.cloud.datastore.Value<D> getValue(Object pojo, SaveContext ctx, Path containerPath)
Copyright © 2018. All rights reserved.