public class GeometryShapeConverter extends TypeConverter implements SimpleValueConverter
Modifier and Type | Class and Description |
---|---|
static class |
GeometryShapeConverter.LineStringConverter |
static class |
GeometryShapeConverter.MultiLineStringConverter |
static class |
GeometryShapeConverter.MultiPointConverter |
static class |
GeometryShapeConverter.MultiPolygonConverter
Extends and therefore configures GeometryShapeConverter to provide the specific configuration for converting MultiPolygon objects to
and from MongoDB representations of the GeoJson.
|
static class |
GeometryShapeConverter.PointConverter |
static class |
GeometryShapeConverter.PolygonConverter |
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, setMapper, setSupportedTypes, setSupportTypes
public Object encode(Object value, MappedField optionalExtraInfo)
TypeConverter
DBObject
encode
in class TypeConverter
public Object decode(Class<?> targetClass, Object fromDBObject, MappedField optionalExtraInfo)
TypeConverter
DBObject
and provide the corresponding java (type-safe) object
decode
in class TypeConverter
Copyright © 2016. All rights reserved.