Package com.mongodb
Class ReflectionDBObject.JavaWrapper
java.lang.Object
com.mongodb.ReflectionDBObject.JavaWrapper
- Enclosing class:
ReflectionDBObject
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Represents a wrapper around the DBObject to interface with the Class fields
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) Deprecated.get
(ReflectionDBObject document, String fieldName) Deprecated.Gets the value for the given field from the given document.keySet()
Deprecated.Gets all the fields on this object.set
(ReflectionDBObject document, String fieldName, Object value) Deprecated.Adds or sets the given field to the given value on the document.
-
Method Details
-
keySet
Deprecated.Gets all the fields on this object.- Returns:
- a Set of all the field names.
-
containsKey
Deprecated.Whether the document this represents contains the given field.- Parameters:
key
- a field name- Returns:
- true if the key exists
-
get
Deprecated.Gets the value for the given field from the given document.- Parameters:
document
- a ReflectionDBObject representing a MongoDB documentfieldName
- the name of the field to get the value for- Returns:
- the value for the given field name
-
set
Deprecated.Adds or sets the given field to the given value on the document.- Parameters:
document
- a ReflectionDBObject representing a MongoDB documentfieldName
- the name of the field to get the value forvalue
- the value to set the field to- Returns:
- the result of setting this value
-