Spring Data MongoDB - Core

org.springframework.data.mongodb.core.convert
Interface MongoConverter

All Superinterfaces:
EntityConverter<MongoPersistentEntity<?>,MongoPersistentProperty,Object,com.mongodb.DBObject>, EntityReader<Object,com.mongodb.DBObject>, EntityWriter<Object,com.mongodb.DBObject>, MongoWriter<Object>
All Known Implementing Classes:
AbstractMongoConverter, MappingMongoConverter

public interface MongoConverter
extends EntityConverter<MongoPersistentEntity<?>,MongoPersistentProperty,Object,com.mongodb.DBObject>, MongoWriter<Object>, EntityReader<Object,com.mongodb.DBObject>

Central Mongo specific converter interface which combines MongoWriter and MongoReader.

Author:
Oliver Gierke, Thomas Darimont

Method Summary
 MongoTypeMapper getTypeMapper()
          Returns thw TypeMapper being used to write type information into DBObjects created with that converter.
 
Methods inherited from interface org.springframework.data.convert.EntityConverter
getConversionService, getMappingContext
 
Methods inherited from interface org.springframework.data.convert.EntityReader
read
 
Methods inherited from interface org.springframework.data.mongodb.core.convert.MongoWriter
convertToMongoType, convertToMongoType, toDBRef
 
Methods inherited from interface org.springframework.data.convert.EntityWriter
write
 

Method Detail

getTypeMapper

MongoTypeMapper getTypeMapper()
Returns thw TypeMapper being used to write type information into DBObjects created with that converter.

Returns:
will never be null.

Spring Data MongoDB - Core

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.