public class ZonedDateTimeTimestampConverter extends Object implements TypeConverter<java.time.ZonedDateTime,Timestamp>
Constructor and Description |
---|
ZonedDateTimeTimestampConverter() |
Modifier and Type | Method and Description |
---|---|
Timestamp |
toDatastoreType(java.time.ZonedDateTime datetime)
Method to convert the passed member value to the datastore type.
|
java.time.ZonedDateTime |
toMemberType(Timestamp ts)
Method to convert the passed datastore value to the member type.
|
public java.time.ZonedDateTime toMemberType(Timestamp ts)
TypeConverter
toMemberType
in interface TypeConverter<java.time.ZonedDateTime,Timestamp>
ts
- Value from the datastorepublic Timestamp toDatastoreType(java.time.ZonedDateTime datetime)
TypeConverter
toDatastoreType
in interface TypeConverter<java.time.ZonedDateTime,Timestamp>
datetime
- Value from the memberCopyright © 2018. All rights reserved.