Class CompositeProperty.DefaultToMapConverter<K>
java.lang.Object
org.springframework.data.neo4j.core.schema.CompositeProperty.DefaultToMapConverter<K>
- Type Parameters:
K
- The type of the keys.
- All Implemented Interfaces:
Neo4jPersistentPropertyToMapConverter<K,
Map<K, Object>>
- Enclosing class:
- CompositeProperty
public static final class CompositeProperty.DefaultToMapConverter<K>
extends Object
implements Neo4jPersistentPropertyToMapConverter<K,Map<K,Object>>
The default implementation, passing map properties through as they are on the way to the graph and possibly
applying a post processor on the way out of the graph.
-
Method Summary
Modifier and TypeMethodDescriptioncompose
(Map<K, org.neo4j.driver.Value> source, Neo4jConversionService conversionService) Composes the object back from the map.decompose
(Map<K, Object> property, Neo4jConversionService conversionService) Decomposes an object into a map.
-
Method Details
-
decompose
public Map<K,org.neo4j.driver.Value> decompose(@Nullable Map<K, Object> property, Neo4jConversionService conversionService) Description copied from interface:Neo4jPersistentPropertyToMapConverter
Decomposes an object into a map. A conversion service is provided in case delegation is needed. -
compose
public Map<K,Object> compose(Map<K, org.neo4j.driver.Value> source, Neo4jConversionService conversionService) Description copied from interface:Neo4jPersistentPropertyToMapConverter
Composes the object back from the map. The map contains the raw driver values, as SDN cannot know how you want to handle them. Therefore, the conversion service to convert driver values is provided.
-