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