public class GeometryShapeConverter extends TypeConverter implements SimpleValueConverter
| Modifier and Type | Class and Description |
|---|---|
static class |
GeometryShapeConverter.LineStringConverter
Defines a new LineStringConverter.
|
static class |
GeometryShapeConverter.MultiLineStringConverter
Defines a new MultiLineStringConverter.
|
static class |
GeometryShapeConverter.MultiPointConverter
Defines a new 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
Defines a new PointConverter.
|
static class |
GeometryShapeConverter.PolygonConverter
Defines a new PolygonConverter.
|
| Modifier and Type | Method and Description |
|---|---|
Geometry |
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 Geometry decode(Class<?> targetClass, Object fromDBObject, MappedField optionalExtraInfo)
TypeConverterDBObject and provide the corresponding java (type-safe) object decode in class TypeConvertertargetClass - the class to create and populatefromDBObject - the DBObject to use when populating the new instanceoptionalExtraInfo - the MappedField that contains the metadata useful for decodingpublic Object encode(Object value, MappedField optionalExtraInfo)
TypeConverterDBObjectencode in class TypeConvertervalue - The object to encodeoptionalExtraInfo - the MappedField that contains the metadata useful for decoding