public class MongoUtils<T> extends Object
| Constructor and Description |
|---|
MongoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromDocument(org.bson.Document doc,
Class<T> tClass) |
static <T> org.bson.Document |
toDocument(T obj)
Convert document to a Bson Document
|
public static <T> org.bson.Document toDocument(T obj)
T - obj - public static <T> T fromDocument(org.bson.Document doc,
Class<T> tClass)
Copyright © 2016. All rights reserved.