public final class ProxyAttributeConverter extends Object implements AttributeConverter<Object,Object>
AttributeConverter backed by an index to which custom generic converters
can be added after the object-graph mapping framework has been initialised.| Constructor and Description |
|---|
ProxyAttributeConverter(Class<?> entityAttributeType,
Class<?> targetGraphType,
ConversionCallbackRegistry converterCallbackRegistry)
Constructs a new
ProxyAttributeConverter based on the given arguments. |
| Modifier and Type | Method and Description |
|---|---|
Object |
toEntityAttribute(Object valueFromGraph) |
Object |
toGraphProperty(Object valueFromEntity) |
public ProxyAttributeConverter(Class<?> entityAttributeType, Class<?> targetGraphType, ConversionCallbackRegistry converterCallbackRegistry)
ProxyAttributeConverter based on the given arguments.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 - The ConversionCallbackRegistry from which to look up the converterspublic Object toEntityAttribute(Object valueFromGraph)
toEntityAttribute in interface AttributeConverter<Object,Object>public Object toGraphProperty(Object valueFromEntity)
toGraphProperty in interface AttributeConverter<Object,Object>Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.