public class URIConverter extends TypeConverter implements SimpleValueConverter
Constructor and Description |
---|
URIConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
decode(Class targetClass,
Object val,
MappedField optionalExtraInfo)
decode the
DBObject and provide the corresponding java (type-safe) objectNOTE: optionalExtraInfo might be null* |
String |
encode(Object uri,
MappedField optionalExtraInfo)
encode the (type-safe) java object into the corresponding
DBObject * |
decode, encode, setMapper
public String encode(Object uri, MappedField optionalExtraInfo)
TypeConverter
DBObject
*encode
in class TypeConverter
public Object decode(Class targetClass, Object val, MappedField optionalExtraInfo) throws MappingException
TypeConverter
DBObject
and provide the corresponding java (type-safe) objectdecode
in class TypeConverter
MappingException
Copyright © 2015. All rights reserved.