public class KeyConverter extends TypeConverter
| Constructor and Description |
|---|
KeyConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(Class targetClass,
Object o,
MappedField optionalExtraInfo)
decode the
DBObject and provide the corresponding java (type-safe) object
NOTE: optionalExtraInfo might be null |
Object |
encode(Object t,
MappedField optionalExtraInfo)
encode the (type-safe) java object into the corresponding
DBObject |
decode, encode, equals, getMapper, getSupportTypes, hashCode, isSupported, oneOf, oneOfClasses, setMapper, setSupportedTypes, setSupportTypespublic Object decode(Class targetClass, Object o, MappedField optionalExtraInfo)
TypeConverterDBObject and provide the corresponding java (type-safe) object
decode in class TypeConverterpublic Object encode(Object t, MappedField optionalExtraInfo)
TypeConverterDBObjectencode in class TypeConverter