Package org.neo4j.ogm.typeconversion
Class DateArrayStringConverter
java.lang.Object
org.neo4j.ogm.typeconversion.DateArrayStringConverter
- All Implemented Interfaces:
AttributeConverter<Date[],
String[]>
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. "yy-MM-dd"
DateLong
will read and write dates as Long values in the database.- Author:
- Luanne Misquitta
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDate[]
toEntityAttribute
(String[] dateValues) String[]
toGraphProperty
(Date[] value)
-
Constructor Details
-
DateArrayStringConverter
-
-
Method Details
-
toGraphProperty
- Specified by:
toGraphProperty
in interfaceAttributeConverter<Date[],
String[]>
-
toEntityAttribute
- Specified by:
toEntityAttribute
in interfaceAttributeConverter<Date[],
String[]>
-