Package org.eclipse.jetty.nosql.mongodb
Class MongoUtils
java.lang.Object
org.eclipse.jetty.nosql.mongodb.MongoUtils
MongoUtils
 Some utility methods for manipulating mongo data. This class facilitates testing.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecodeName(String name) static ObjectdecodeValue(Object valueToDecode) static ObjectencodeName(Object value) static StringencodeName(String name) static ObjectgetNestedValue(com.mongodb.DBObject dbObject, String nestedKey) Dig through a given dbObject for the nested value 
- 
Constructor Details
- 
MongoUtils
public MongoUtils() 
 - 
 - 
Method Details
- 
decodeValue
- Throws:
 IOExceptionClassNotFoundException
 - 
decodeName
 - 
encodeName
 - 
encodeName
- Throws:
 IOException
 - 
getNestedValue
Dig through a given dbObject for the nested value- Parameters:
 dbObject- the mongo object to searchnestedKey- the field key to find- Returns:
 - the value of the field key
 
 
 -