public class DateCollectionStringConverter extends Object implements AttributeConverter<Collection<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 |
|---|
DateCollectionStringConverter(String userDefinedFormat,
Class<? extends Collection> collectionClass) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Date> |
toEntityAttribute(String[] dateValues) |
String[] |
toGraphProperty(Collection<Date> value) |
public DateCollectionStringConverter(String userDefinedFormat, Class<? extends Collection> collectionClass)
public String[] toGraphProperty(Collection<Date> value)
toGraphProperty in interface AttributeConverter<Collection<Date>,String[]>public Collection<Date> toEntityAttribute(String[] dateValues)
toEntityAttribute in interface AttributeConverter<Collection<Date>,String[]>Copyright © 2016 Neo Technology, Inc.. All rights reserved.