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

    Modifier and Type
    Method
    Description
    <T> T
    convert(Class<T> targetType, Object value)
    Convert the given value into an instance of the the specified target type.
  • Method Details

    • convert

      <T> T convert(Class<T> targetType, Object value)
      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 into
      value - 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 is null