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