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