public interface ObjectMapper
ObjectMapper is responsible for converting
objects to and from mongo's DBObjects.| Modifier and Type | Method and Description |
|---|---|
<T> T |
map(com.mongodb.DBObject dbObject,
java.lang.Class<T> objectClass)
Converts the given
DBObject into a java object. |
<T> com.mongodb.DBObject |
unmap(T object)
Converts the given java object into a
DBObject. |
<T> java.lang.Object |
unmapValue(T object)
Converts the given java object into an object suitable for
storage in the database.
|
<T> T map(com.mongodb.DBObject dbObject,
java.lang.Class<T> objectClass)
throws MjormException
DBObject into a java object.T - the typedbObject - the DBObjectobjectClass - the Class of the object to convert toMjormException - on error<T> com.mongodb.DBObject unmap(T object)
throws MjormException
DBObject.T - the typeobject - the java objectDBObjectMjormException - on error<T> java.lang.Object unmapValue(T object)
throws MjormException
T - the typeobject - the java objectObjectMjormException - on errorCopyright © 2013. All Rights Reserved.