Package org.neo4j.ogm.typeconversion
Interface ConversionCallback
public interface ConversionCallback
Defines a method to be called by the underlying OGM when it needs to perform a type conversion at runtime but no explicit
AttributeConverter
has been found.- Author:
- Adam George
-
Method Summary
-
Method Details
-
convert
Convert the given value into an instance of the the specified target type.- Type Parameters:
T
- the type of object returned by this conversion- Parameters:
targetType
- The target type to convert intovalue
- The value to be converted- Returns:
- The converted object, which should be an instance of the specified target type or
null
if the given value to convert isnull
-