Class LocalTimeLongConverter
- java.lang.Object
-
- org.datanucleus.store.types.converters.LocalTimeLongConverter
-
- All Implemented Interfaces:
Serializable,TypeConverter<java.time.LocalTime,Long>
public class LocalTimeLongConverter extends Object implements TypeConverter<java.time.LocalTime,Long>
Class to handle the conversion between java.time.LocalTime and a long form (nanos of day).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalTimeLongConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongtoDatastoreType(java.time.LocalTime date)Method to convert the passed member value to the datastore type.java.time.LocalTimetoMemberType(Long val)Method to convert the passed datastore value to the member type.
-
-
-
Method Detail
-
toMemberType
public java.time.LocalTime toMemberType(Long val)
Description copied from interface:TypeConverterMethod to convert the passed datastore value to the member type.- Specified by:
toMemberTypein interfaceTypeConverter<java.time.LocalTime,Long>- Parameters:
val- Value from the datastore- Returns:
- Value for the member
-
toDatastoreType
public Long toDatastoreType(java.time.LocalTime date)
Description copied from interface:TypeConverterMethod to convert the passed member value to the datastore type.- Specified by:
toDatastoreTypein interfaceTypeConverter<java.time.LocalTime,Long>- Parameters:
date- Value from the member- Returns:
- Value for the datastore
-
-