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
DBObject NOTE: 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) objectMappingException
public final Object decode(Class targetClass, Object fromDBObject) throws MappingException
DBObject
and provide the corresponding java (type-safe) object *MappingException
public final Object encode(Object value) throws MappingException
DBObject
MappingException
public Object encode(Object value, MappedField optionalExtraInfo)
DBObject
*public void setMapper(Mapper mapper)
Copyright © 2015. All rights reserved.