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)
TypeConvertertoMemberType in interface TypeConverter<java.time.Instant,Timestamp>ts - Value from the datastorepublic Timestamp toDatastoreType(java.time.Instant inst)
TypeConvertertoDatastoreType in interface TypeConverter<java.time.Instant,Timestamp>inst - Value from the memberCopyright © 2020. All rights reserved.