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