public class MapCompositeConverter extends Object implements CompositeAttributeConverter<Map<?,?>>
| Constructor and Description |
|---|
MapCompositeConverter(String prefix,
String delimiter,
boolean allowCast,
ParameterizedType mapFieldType,
Predicate<Class<?>> isSupportedNativeType)
Create MapCompositeConverter
|
| Modifier and Type | Method and Description |
|---|---|
void |
setEnumKeysTransformation(BiFunction<Properties.Phase,String,String> enumKeysTransformation) |
Map<?,?> |
toEntityAttribute(Map<String,?> value) |
Map<String,?> |
toGraphProperties(Map<?,?> fieldValue) |
public MapCompositeConverter(String prefix, String delimiter, boolean allowCast, ParameterizedType mapFieldType, Predicate<Class<?>> isSupportedNativeType)
prefix - prefix that is used for all propertiesdelimiter - delimiter that is used between prefix, properties and nested propertiesallowCast - if casting from non Cypher types should be allowedmapFieldType - type information for the fieldisSupportedNativeType - Passed on fpublic void setEnumKeysTransformation(BiFunction<Properties.Phase,String,String> enumKeysTransformation)
public Map<String,?> toGraphProperties(Map<?,?> fieldValue)
toGraphProperties in interface CompositeAttributeConverter<Map<?,?>>public Map<?,?> toEntityAttribute(Map<String,?> value)
toEntityAttribute in interface CompositeAttributeConverter<Map<?,?>>Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.