public class ObjectMapperImpl extends Object implements ObjectMapper
| Constructor and Description |
|---|
ObjectMapperImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionName(Class cls) |
Morphium |
getMorphium() |
NameProvider |
getNameProviderForClass(Class<?> cls)
get current name provider for class
|
com.mongodb.DBObject |
marshall(Object o) |
void |
setMorphium(Morphium m)
will automatically be called after instanciation by Morphium
also gets the AnnotationAndReflectionHelper from this object (to make use of the caches)
|
void |
setNameProviderForClass(Class<?> cls,
NameProvider np)
override nameprovider in runtime!
|
<T> T |
unmarshall(Class<? extends T> cls,
com.mongodb.DBObject o) |
<T> T |
unmarshall(Class<? extends T> cls,
String jsonString) |
public void setMorphium(Morphium m)
setMorphium in interface ObjectMapperm - - the Morphium instancepublic Morphium getMorphium()
getMorphium in interface ObjectMapperpublic void setNameProviderForClass(Class<?> cls, NameProvider np)
setNameProviderForClass in interface ObjectMappercls - - class to usenp - - the NameProvider for that classpublic NameProvider getNameProviderForClass(Class<?> cls)
ObjectMappergetNameProviderForClass in interface ObjectMappercls - - classpublic String getCollectionName(Class cls)
getCollectionName in interface ObjectMapperpublic com.mongodb.DBObject marshall(Object o)
marshall in interface ObjectMapperpublic <T> T unmarshall(Class<? extends T> cls, String jsonString) throws org.json.simple.parser.ParseException
unmarshall in interface ObjectMapperorg.json.simple.parser.ParseExceptionpublic <T> T unmarshall(Class<? extends T> cls, com.mongodb.DBObject o)
unmarshall in interface ObjectMapperCopyright © 2014. All Rights Reserved.