public final class DBObjects extends Object
Modifier and Type | Method and Description |
---|---|
static org.bson.Document |
adapt(Map<String,Object> o) |
static Object |
adapt(Object o) |
static com.mongodb.DBObject |
documentToDbObject(org.bson.Document doc) |
static org.bson.Document |
from(Object o) |
static org.bson.Document |
fromFunction(String function,
org.bson.Document document) |
static org.bson.Document |
fromMap(Map<String,Object> map)
Performs a shallow conversion of a map into a Document: values of type Map will not be converted
|
static boolean |
isCommandResultOk(org.bson.Document document)
Inspect a
Document produced as a result of a command execution and say if it was successful or not |
public static org.bson.Document fromMap(Map<String,Object> map)
public static boolean isCommandResultOk(org.bson.Document document)
Document
produced as a result of a command execution and say if it was successful or notdocument
- the result of a command executionpublic static org.bson.Document from(Object o)
public static org.bson.Document fromFunction(String function, org.bson.Document document)
public static com.mongodb.DBObject documentToDbObject(org.bson.Document doc)
Copyright © 2010–2017. All rights reserved.