Class ConvertWith.UnsetConverter

java.lang.Object
org.springframework.data.neo4j.core.convert.ConvertWith.UnsetConverter
All Implemented Interfaces:
Neo4jPersistentPropertyConverter<Object>
Enclosing class:
ConvertWith

public static final class ConvertWith.UnsetConverter extends Object implements Neo4jPersistentPropertyConverter<Object>
Indicates an unset converter.
  • Constructor Details

    • UnsetConverter

      public UnsetConverter()
  • Method Details

    • write

      public org.neo4j.driver.Value write(Object source)
      Specified by:
      write in interface Neo4jPersistentPropertyConverter<Object>
      Parameters:
      source - The value to store. We might pass null, if your converter is not able to handle that, this is ok, we do handle null pointer exceptions
      Returns:
      The converted value, never null. To represent null, use Values.NULL
    • read

      public Object read(org.neo4j.driver.Value source)
      Specified by:
      read in interface Neo4jPersistentPropertyConverter<Object>
      Parameters:
      source - The value to read, never null or Values.NULL
      Returns:
      The converted value, maybe null if source was equals to Values.NULL.