Spring Data Document

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

All Superinterfaces:
MongoReader<Object>, MongoWriter<Object>
All Known Implementing Classes:
AbstractMongoConverter, MappingMongoConverter, SimpleMongoConverter

public interface MongoConverter
extends MongoWriter<Object>, MongoReader<Object>


Method Summary
 ObjectId convertObjectId(Object id)
          Returns the ObjectId instance for the given id.
<T> T
convertObjectId(ObjectId id, Class<T> targetType)
          Converts the given ObjectId to the given target type.
 ConversionService getConversionService()
           
 org.springframework.data.mapping.model.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> getMappingContext()
           
 Object[] maybeConvertArray(Object[] src)
           
 BasicDBList maybeConvertList(BasicDBList dbl)
           
 Object maybeConvertObject(Object obj)
           
 
Methods inherited from interface org.springframework.data.document.mongodb.MongoWriter
write
 
Methods inherited from interface org.springframework.data.document.mongodb.MongoReader
read
 

Method Detail

convertObjectId

<T> T convertObjectId(ObjectId id,
                      Class<T> targetType)
Converts the given ObjectId to the given target type.

Type Parameters:
T - the actual type to create
Parameters:
id - the source ObjectId
targetType - the target type to convert the ObjectId to
Returns:

convertObjectId

ObjectId convertObjectId(Object id)
Returns the ObjectId instance for the given id.

Parameters:
id -
Returns:

getMappingContext

org.springframework.data.mapping.model.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> getMappingContext()

maybeConvertObject

Object maybeConvertObject(Object obj)

maybeConvertArray

Object[] maybeConvertArray(Object[] src)

maybeConvertList

BasicDBList maybeConvertList(BasicDBList dbl)

getConversionService

ConversionService getConversionService()

Spring Data Document

Copyright © 2011. All Rights Reserved.