public abstract class TypeConverter extends Object
Modifier and Type | Method and Description |
---|---|
abstract Object |
decode(Class<?> targetClass,
Object fromDBObject,
MappedField optionalExtraInfo)
decode the
DBObject and provide the corresponding java (type-safe) object
NOTE: optionalExtraInfo might be null |
Object |
decode(Class targetClass,
Object fromDBObject)
decode the
DBObject and provide the corresponding java (type-safe) object |
Object |
encode(Object value)
encode the type safe java object into the corresponding
DBObject |
Object |
encode(Object value,
MappedField optionalExtraInfo)
encode the (type-safe) java object into the corresponding
DBObject |
boolean |
equals(Object obj) |
Mapper |
getMapper() |
Class[] |
getSupportTypes()
Deprecated.
use #getSupportedTypes()
|
int |
hashCode() |
void |
setMapper(Mapper mapper) |
void |
setSupportedTypes(Class[] supportedTypes) |
void |
setSupportTypes(Class[] supportTypes)
Deprecated.
use #setSupportedTypes(Class[])
|
public Mapper getMapper()
@Deprecated public Class[] getSupportTypes()
public void setSupportedTypes(Class[] supportedTypes)
@Deprecated public void setSupportTypes(Class[] supportTypes)
public abstract Object decode(Class<?> targetClass, Object fromDBObject, MappedField optionalExtraInfo)
DBObject
and provide the corresponding java (type-safe) object
public final Object decode(Class targetClass, Object fromDBObject)
DBObject
and provide the corresponding java (type-safe) objectpublic final Object encode(Object value)
DBObject
public Object encode(Object value, MappedField optionalExtraInfo)
DBObject
public void setMapper(Mapper mapper)
Copyright © 2016. All rights reserved.