public class DateStringConverter extends Object implements AttributeConverter<Date,String>
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.Constructor and Description |
---|
DateStringConverter(String userDefinedFormat) |
DateStringConverter(String userDefinedFormat,
boolean lenient) |
Modifier and Type | Method and Description |
---|---|
Date |
toEntityAttribute(String value) |
String |
toGraphProperty(Date value) |
public DateStringConverter(String userDefinedFormat)
public DateStringConverter(String userDefinedFormat, boolean lenient)
public String toGraphProperty(Date value)
toGraphProperty
in interface AttributeConverter<Date,String>
public Date toEntityAttribute(String value)
toEntityAttribute
in interface AttributeConverter<Date,String>
Copyright © 2015–2023 Neo Technology, Inc.. All rights reserved.