Class TypeConverter

  • All Implemented Interfaces:
    org.neo4j.ogm.typeconversion.CompositeAttributeConverter<Type>
    Direct Known Subclasses:
    TypeConverter.CastTypeConverter

    public class TypeConverter
    extends java.lang.Object
    implements org.neo4j.ogm.typeconversion.CompositeAttributeConverter<Type>
    The TypeConverter is a helper converter that takes the Object-based Type and serializes into a flatten structured in the database graph. It stores the type as a string representation, using Type.toString() as well as additional information such as modifiers.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String basePropertyName  
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeConverter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Type toEntityAttribute​(java.util.Map<java.lang.String,​?> value)  
      java.util.Map<java.lang.String,​?> toGraphProperties​(Type value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • basePropertyName

        protected java.lang.String basePropertyName
    • Constructor Detail

      • TypeConverter

        public TypeConverter()
    • Method Detail

      • toGraphProperties

        public java.util.Map<java.lang.String,​?> toGraphProperties​(Type value)
        Specified by:
        toGraphProperties in interface org.neo4j.ogm.typeconversion.CompositeAttributeConverter<Type>
      • toEntityAttribute

        public Type toEntityAttribute​(java.util.Map<java.lang.String,​?> value)
        Specified by:
        toEntityAttribute in interface org.neo4j.ogm.typeconversion.CompositeAttributeConverter<Type>