public class TimestampConverter extends DateConverter
| Constructor and Description |
|---|
TimestampConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(Class targetClass,
Object val,
MappedField optionalExtraInfo)
decode the
DBObject and provide the corresponding java (type-safe) objectNOTE: optionalExtraInfo might be null* |
Object |
encode(Object val,
MappedField optionalExtraInfo)
encode the (type-safe) java object into the corresponding
DBObject* |
decode, encode, setMapperpublic Object decode(Class targetClass, Object val, MappedField optionalExtraInfo) throws MappingException
TypeConverterDBObject and provide the corresponding java (type-safe) objectdecode in class DateConverterMappingExceptionpublic Object encode(Object val, MappedField optionalExtraInfo)
TypeConverterDBObject*encode in class TypeConverterCopyright © 2015. All rights reserved.