|
Spring Data Document | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of the object to convert to a DBObjectpublic interface MongoWriter<T>
A MongoWriter is responsible for converting an object of type T to the native MongoDB representation DBObject.
| Method Summary | |
|---|---|
Object |
convertToMongoType(Object obj)
Converts the given object into one Mongo will be able to store natively. |
void |
write(T t,
DBObject dbo)
Write the given object of type T to the native MongoDB object representation DBObject. |
| Method Detail |
|---|
void write(T t,
DBObject dbo)
t - The object to convert to a DBObjectdbo - The DBObject to use for writing.Object convertToMongoType(Object obj)
obj -
|
Spring Data Document | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||