public interface Neo4jConverter extends EntityReader<Object,org.neo4j.driver.Record>, EntityWriter<Object,Map<String,Object>>
Modifier and Type | Method and Description |
---|---|
Object |
readValueForProperty(org.neo4j.driver.Value value,
TypeInformation<?> type)
Reads a
Value returned by the driver and converts it into a simple type supported
by Neo4j SDN. |
org.neo4j.driver.Value |
writeValueFromProperty(Object value,
TypeInformation<?> type)
Converts an
Object to a driver's value object. |
read
write
@Nullable Object readValueForProperty(@Nullable org.neo4j.driver.Value value, TypeInformation<?> type)
Value
returned by the driver and converts it into a simple type
supported
by Neo4j SDN. If the value cannot be converted, a TypeMismatchDataAccessException
will be thrown, it's
cause indicating the failed conversion.value
- The value to be read, may be null.type
- The type information describing the target type.Values.NULL
.TypeMismatchDataAccessException
- In case the value cannot be converted to the target typeorg.neo4j.driver.Value writeValueFromProperty(@Nullable Object value, TypeInformation<?> type)
Object
to a driver's value object.value
- The value to get written, may be null.type
- The type information describing the target type.Copyright © 2019–2020 Neo4j, Neo4j Sweden AB. All rights reserved.