Package org.neo4j.ogm.typeconversion


package org.neo4j.ogm.typeconversion
  • Class
    Description
    based on JPA AttributeConverter, but with methods appropriate for property graphs, rather than column stores/RDBMS.
    This class serves as a holder for converters from a given type to another.
    By default the OGM will map byte[] objects to Base64 String values when being stored as a node / relationship property
    By default the OGM will map Byte[] wrapped byte[] objects to Base64 String values when being stored as a node / relationship property The conversion between the primitive byte[] class and its wrapper Byte[] means that this converter is slightly slower than using the ByteArray64Converter, which works with primitive byte arrays directly.
     
    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.
    Let's do the simplest thing we possibly can to link this together.
     
     
    By default the OGM will map date arrays to UTC-based ISO8601 compliant String arrays when being stored as a node / relationship property Users can override this behaviour for Date objects using the appropriate annotations: DateString.FORMAT will convert between dates and strings using a user defined date format, e.g.
    By default the OGM will map date collections to UTC-based ISO8601 compliant String collections when being stored as a node / relationship property Users can override this behaviour for Date objects using the appropriate annotations: DateString.FORMAT will convert between dates and strings using a user defined date format, e.g.
    Converter to convert between Date and Long.
    By default the OGM will map date objects to UTC-based ISO8601 compliant String values when being stored as a node / relationship property Users can override this behaviour for Date objects using the appropriate annotations: DateString.FORMAT will convert between dates and strings using a user defined date format, e.g.
    By default the OGM will map enum arrays to and from the string arrays with values returned by enum.name() enum.name() is preferred to enum.ordinal() because it is (slightly) safer: a persisted enum have to be renamed to break its database mapping, whereas if its ordinal was persisted instead, the mapping would be broken simply by changing the declaration order of the enum constants.
    By default the OGM will map enum collections to and from the string collections containing values returned by enum.name() enum.name() is preferred to enum.ordinal() because it is (slightly) safer: a persisted enum have to be renamed to break its database mapping, whereas if its ordinal was persisted instead, the mapping would be broken simply by changing the declaration order of the enum constants.
    By default the OGM will map enum objects to and from the string value returned by enum.name() enum.name() is preferred to enum.ordinal() because it is (slightly) safer: a persisted enum have to be renamed to break its database mapping, whereas if its ordinal was persisted instead, the mapping would be broken simply by changing the declaration order of the enum constants.
    Converter to convert between Instant and Long.
    Converter to convert between Instant and String.
    Converter to convert between LocalDate and String.
    Converter to convert between LocalDateTime and String.
    MapCompositeConverter converts Map field into prefixed properties of node or relationship entity.
    This converter is provided for convenience so that the default conversion of byte arrays (byte[] to Base64 encoded Strings can be turned off.
    This converter is provided for convenience so that the default conversion of byte arrays (Byte[] to Base64 encoded Strings can be turned off.
    The NumberStringConverter can be used to convert any java object array containing values that extend Number to and from its String array representation.
    The NumberStringConverter can be used to convert any java object collection containing values that extend Number to and from its String array representation.
    The NumberStringConverter can be used to convert any java object that extends Number to and from its String representation.
    Converter to convert between OffsetDateTime and String.
    Proxy implementation of AttributeConverter backed by an index to which custom generic converters can be added after the object-graph mapping framework has been initialised.
    Converter to convert UUID to String.