public class BasicDBObjectMapper<S> extends Object implements Mapper<com.mongodb.BasicDBObject,S>
Constructor and Description |
---|
BasicDBObjectMapper(MongoStoreImpl mongoStoreImpl,
MapperRegistry mapperRegistry,
Class<S> expectedEntityType) |
Modifier and Type | Method and Description |
---|---|
S |
convertObject(MapperContext<com.mongodb.BasicDBObject,S> context)
Convert object from one type to expected type
|
Class<S> |
getExpectedReturnType() |
Class<? extends com.mongodb.BasicDBObject> |
getTypeOfObjectToConvert() |
public BasicDBObjectMapper(MongoStoreImpl mongoStoreImpl, MapperRegistry mapperRegistry, Class<S> expectedEntityType)
public S convertObject(MapperContext<com.mongodb.BasicDBObject,S> context)
Mapper
convertObject
in interface Mapper<com.mongodb.BasicDBObject,S>
context
- Encapsulates reference to converted object and other things, which might be helpful in conversionpublic Class<? extends com.mongodb.BasicDBObject> getTypeOfObjectToConvert()
getTypeOfObjectToConvert
in interface Mapper<com.mongodb.BasicDBObject,S>
public Class<S> getExpectedReturnType()
getExpectedReturnType
in interface Mapper<com.mongodb.BasicDBObject,S>
Copyright © 2014. All Rights Reserved.