public interface DatastoreEntityConverter extends org.springframework.data.convert.EntityReader<Object,com.google.cloud.datastore.BaseEntity>, org.springframework.data.convert.EntityWriter<Object,com.google.cloud.datastore.BaseEntity.Builder>
| Modifier and Type | Method and Description |
|---|---|
ReadWriteConversions |
getConversions()
Get the
ReadWriteConversions used in this converter. |
<T,R> Map<T,R> |
readAsMap(Class<T> keyType,
org.springframework.data.util.TypeInformation<R> componentType,
com.google.cloud.datastore.BaseEntity entity)
Read the entity as a
Map. |
ReadWriteConversions getConversions()
ReadWriteConversions used in this converter.<T,R> Map<T,R> readAsMap(Class<T> keyType, org.springframework.data.util.TypeInformation<R> componentType, com.google.cloud.datastore.BaseEntity entity)
Map.T - the type of the key in the mapR - the type of the value in the mapkeyType - the key type of the map to be read.componentType - the value type of the map, into which each field value will be
converted.entity - the entity from Cloud Datastore.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.