public static class ReflectionDBObject.JavaWrapper extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
Deprecated.
|
Object |
get(ReflectionDBObject document,
String fieldName)
Gets the value for the given field from the given document.
|
Set<String> |
keySet()
Gets all the fields on this object.
|
Object |
set(ReflectionDBObject document,
String fieldName,
Object value)
Adds or sets the given field to the given value on the document.
|
public Set<String> keySet()
@Deprecated public boolean containsKey(String key)
key
- a field namepublic Object get(ReflectionDBObject document, String fieldName)
document
- a ReflectionDBObject representing a MongoDB documentfieldName
- the name of the field to get the value forpublic Object set(ReflectionDBObject document, String fieldName, Object value)
document
- a ReflectionDBObject representing a MongoDB documentfieldName
- the name of the field to get the value forvalue
- the value to set the field to