K
- The type of the keys (Only Strings and Enums are supported).P
- The type of the property.@API(status=STABLE,
since="6.0")
public interface Neo4jPersistentPropertyToMapConverter<K,P>
The calling mechanism will take care of adding and removing configured prefixes and transforming keys and values into something that Neo4j can understand.
Modifier and Type | Method and Description |
---|---|
P |
compose(Map<K,org.neo4j.driver.Value> source,
Neo4jConversionService neo4jConversionService)
Composes the object back from the map.
|
Map<K,org.neo4j.driver.Value> |
decompose(P property,
Neo4jConversionService neo4jConversionService)
Decomposes an object into a map.
|
Map<K,org.neo4j.driver.Value> decompose(P property, Neo4jConversionService neo4jConversionService)
property
- The source propertyneo4jConversionService
- The conversion service to delegate to if necessaryP compose(Map<K,org.neo4j.driver.Value> source, Neo4jConversionService neo4jConversionService)
source
- The source mapneo4jConversionService
- The conversion service in case you want to delegate the work for some values in the mapCopyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.