Module org.neo4j.ogm.core
Package org.neo4j.ogm.typeconversion
package org.neo4j.ogm.typeconversion
-
ClassDescriptionAttributeConverter<T,
F> 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 propertyBy 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 explicitAttributeConverter
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.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 betweenLocalDateTime
andString
.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 extendNumber
to and from its String array representation.The NumberStringConverter can be used to convert any java object collection containing values that extendNumber
to and from its String array representation.The NumberStringConverter can be used to convert any java object that extendsNumber
to and from its String representation.Converter to convert betweenOffsetDateTime
andString
.Proxy implementation ofAttributeConverter
backed by an index to which custom generic converters can be added after the object-graph mapping framework has been initialised.