public class MongoHelpers extends Object
| Constructor and Description |
|---|
MongoHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static String |
flatten(String left,
String right)
Links the two field names into a single left.right field name.
|
static Object |
getValueOrNull(org.bson.Document entity,
String dotPath) |
static <T> T |
getValueOrNull(org.bson.Document entity,
String dotPath,
Class<T> type) |
static boolean |
hasField(org.bson.Document entity,
String dotPath) |
static void |
resetValue(org.bson.Document entity,
String column)
Remove a column from the Document
|
static void |
setValue(org.bson.Document entity,
String column,
Object value) |
public static void resetValue(org.bson.Document entity,
String column)
entity - the Document with the columncolumn - the column to removepublic static boolean hasField(org.bson.Document entity,
String dotPath)
public static <T> T getValueOrNull(org.bson.Document entity,
String dotPath,
Class<T> type)
Copyright © 2010–2017 Hibernate. All rights reserved.