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