public class SerializedObjectConverter extends TypeConverter
| Constructor and Description |
|---|
SerializedObjectConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(Class targetClass,
Object fromDBObject,
MappedField f)
decode the
DBObject and provide the corresponding java (type-safe) object NOTE: optionalExtraInfo might be null |
Object |
encode(Object value,
MappedField f)
encode the (type-safe) java object into the corresponding
DBObject |
protected boolean |
isSupported(Class c,
MappedField optionalExtraInfo)
checks if the class is supported for this converter.
|
decode, encode, equals, getMapper, getSupportTypes, hashCode, oneOf, oneOfClasses, setMapper, setSupportedTypes, setSupportTypespublic Object decode(Class targetClass, Object fromDBObject, MappedField f)
TypeConverterDBObject and provide the corresponding java (type-safe) object decode in class TypeConvertertargetClass - the class to create and populatefromDBObject - the DBObject to use when populating the new instancef - the MappedField that contains the metadata useful for decodingpublic Object encode(Object value, MappedField f)
TypeConverterDBObjectencode in class TypeConvertervalue - The object to encodef - the MappedField that contains the metadata useful for decodingprotected boolean isSupported(Class c, MappedField optionalExtraInfo)
TypeConverterisSupported in class TypeConverter