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(com.mongodb.DBObject entity,
String dotPath) |
static <T> T |
getValueOrNull(com.mongodb.DBObject entity,
String dotPath,
Class<T> type) |
static boolean |
hasField(com.mongodb.DBObject entity,
String dotPath) |
static void |
resetValue(com.mongodb.DBObject entity,
String column)
Remove a column from the DBObject
|
static void |
setValue(com.mongodb.DBObject entity,
String column,
Object value) |
public static void resetValue(com.mongodb.DBObject entity,
String column)
entity - the DBObject with the columncolumn - the column to removepublic static boolean hasField(com.mongodb.DBObject entity,
String dotPath)
public static <T> T getValueOrNull(com.mongodb.DBObject entity,
String dotPath,
Class<T> type)
Copyright © 2010–2017 Hibernate. All rights reserved.