public class UpdateMapper extends QueryMapper
QueryMapper
that retains type information on the mongo types.Constructor and Description |
---|
UpdateMapper(MongoConverter converter)
Creates a new
UpdateMapper using the given MongoConverter . |
Modifier and Type | Method and Description |
---|---|
protected Object |
delegateConvertToMongoType(Object source,
MongoPersistentEntity<?> entity)
Converts the given source object to a mongo type retaining the original type information of the source type on the
mongo type.
|
convertId, getMappedObject, isKeyword, isNestedKeyword
public UpdateMapper(MongoConverter converter)
UpdateMapper
using the given MongoConverter
.converter
- must not be null.protected Object delegateConvertToMongoType(Object source, MongoPersistentEntity<?> entity)
delegateConvertToMongoType
in class QueryMapper
QueryMapper.delegateConvertToMongoType(java.lang.Object,
org.springframework.data.mongodb.core.mapping.MongoPersistentEntity)
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.