Class MongoConversionContext

java.lang.Object
org.springframework.data.mongodb.core.convert.MongoConversionContext
All Implemented Interfaces:
org.springframework.data.convert.ValueConversionContext<MongoPersistentProperty>

public class MongoConversionContext extends Object implements org.springframework.data.convert.ValueConversionContext<MongoPersistentProperty>
ValueConversionContext that allows to delegate read/write to an underlying MongoConverter.
Since:
3.4
Author:
Christoph Strobl
  • Constructor Details

  • Method Details

    • getProperty

      public MongoPersistentProperty getProperty()
      Specified by:
      getProperty in interface org.springframework.data.convert.ValueConversionContext<MongoPersistentProperty>
    • getValue

      @Nullable public Object getValue(String propertyPath)
    • write

      public <T> T write(@Nullable Object value, org.springframework.data.util.TypeInformation<T> target)
      Specified by:
      write in interface org.springframework.data.convert.ValueConversionContext<MongoPersistentProperty>
    • read

      public <T> T read(@Nullable Object value, org.springframework.data.util.TypeInformation<T> target)
      Specified by:
      read in interface org.springframework.data.convert.ValueConversionContext<MongoPersistentProperty>
    • getSpELContext

      @Nullable public org.springframework.data.mapping.model.SpELContext getSpELContext()