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