public interface DatastoreEntityConverter extends org.springframework.data.convert.EntityReader<Object,BaseEntity>, org.springframework.data.convert.EntityWriter<Object,BaseEntity.Builder>
| Modifier and Type | Method and Description |
|---|---|
ReadWriteConversions |
getConversions()
Get the
ReadWriteConversions used in this converter. |
<T,R> Map<T,R> |
readAsMap(BaseEntity entity,
org.springframework.data.util.TypeInformation mapTypeInformation)
Read the entity as a
Map. |
<T,R> Map<T,R> |
readAsMap(Class<T> keyType,
org.springframework.data.util.TypeInformation<R> componentType,
BaseEntity entity)
Read the entity as a
Map when the map type is unknown. |
ReadWriteConversions getConversions()
ReadWriteConversions used in this converter.<T,R> Map<T,R> readAsMap(BaseEntity entity, org.springframework.data.util.TypeInformation mapTypeInformation)
Map.T - the type of the key in the mapR - the type of the value in the mapentity - the entity from Cloud Datastore.mapTypeInformation - the actual type of the map<T,R> Map<T,R> readAsMap(Class<T> keyType, org.springframework.data.util.TypeInformation<R> componentType, BaseEntity entity)
Map when the map type is unknown.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 © 2020 Pivotal Software, Inc.. All rights reserved.