Package org.neo4j.ogm.typeconversion
Class ProxyAttributeConverter
java.lang.Object
org.neo4j.ogm.typeconversion.ProxyAttributeConverter
- All Implemented Interfaces:
AttributeConverter<Object,
Object>
public final class ProxyAttributeConverter
extends Object
implements AttributeConverter<Object,Object>
Proxy implementation of
AttributeConverter
backed by an index to which custom generic converters
can be added after the object-graph mapping framework has been initialised.- Author:
- Adam George
-
Constructor Summary
ConstructorDescriptionProxyAttributeConverter
(Class<?> entityAttributeType, Class<?> targetGraphType, ConversionCallbackRegistry converterCallbackRegistry) Constructs a newProxyAttributeConverter
based on the given arguments. -
Method Summary
Modifier and TypeMethodDescriptiontoEntityAttribute
(Object valueFromGraph) toGraphProperty
(Object valueFromEntity)
-
Constructor Details
-
ProxyAttributeConverter
public ProxyAttributeConverter(Class<?> entityAttributeType, Class<?> targetGraphType, ConversionCallbackRegistry converterCallbackRegistry) Constructs a newProxyAttributeConverter
based on the given arguments.- Parameters:
entityAttributeType
- The type of the attribute in the entity to converttargetGraphType
- The target type to which the value from the entity should be converted for saving into the graphconverterCallbackRegistry
- TheConversionCallbackRegistry
from which to look up the converters
-
-
Method Details
-
toEntityAttribute
- Specified by:
toEntityAttribute
in interfaceAttributeConverter<Object,
Object>
-
toGraphProperty
- Specified by:
toGraphProperty
in interfaceAttributeConverter<Object,
Object>
-