public class GeometryQueryConverter extends TypeConverter implements SimpleValueConverter
| Constructor and Description |
|---|
GeometryQueryConverter(Mapper mapper)
Create a new converter.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
encode(Object value,
MappedField optionalExtraInfo)
encode the (type-safe) java object into the corresponding
DBObject |
decode, encode, equals, getMapper, getSupportTypes, hashCode, isSupported, oneOf, oneOfClasses, setMapper, setSupportedTypes, setSupportTypespublic GeometryQueryConverter(Mapper mapper)
mapper - the Mapper is required as this converter delegates other type encoding back to the mapperpublic Object encode(Object value, MappedField optionalExtraInfo)
TypeConverterDBObjectencode in class TypeConverterpublic Object decode(Class<?> targetClass, Object fromDBObject, MappedField optionalExtraInfo)
TypeConverterDBObject and provide the corresponding java (type-safe) object
decode in class TypeConverter