public abstract class TypeConverter extends Object
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(Class targetClass,
Object fromDBObject)
decode the
DBObject and provide the corresponding java (type-safe) object * |
abstract Object |
decode(Class targetClass,
Object fromDBObject,
MappedField optionalExtraInfo)
decode the
DBObject and provide the corresponding java (type-safe) objectNOTE: optionalExtraInfo might be null* |
Object |
encode(Object value)
encode the type safe java object into the corresponding
DBObjectNOTE: optionalExtraInfo might be null* |
Object |
encode(Object value,
MappedField optionalExtraInfo)
encode the (type-safe) java object into the corresponding
DBObject* |
void |
setMapper(Mapper mapper) |
public abstract Object decode(Class targetClass, Object fromDBObject, MappedField optionalExtraInfo) throws MappingException
DBObject and provide the corresponding java (type-safe) objectMappingExceptionpublic final Object decode(Class targetClass, Object fromDBObject) throws MappingException
DBObject and provide the corresponding java (type-safe) object *MappingExceptionpublic final Object encode(Object value) throws MappingException
DBObjectMappingExceptionpublic Object encode(Object value, MappedField optionalExtraInfo)
DBObject*public void setMapper(Mapper mapper)
Copyright © 2015. All rights reserved.