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