| org.bson.BSONObject |
Known Indirect Subclasses
|
A key-value map that can be saved to the database.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Checks if this object contains a field with the given name.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
Gets a field from this object by a given name.
| |||||||||||
Returns this object's fields' names
| |||||||||||
Sets a name/value pair in this object.
| |||||||||||
Sets all key/value pairs from an object into this object
| |||||||||||
Sets all key/value pairs from a map into this object
| |||||||||||
Removes a field with a given name from this object.
| |||||||||||
Returns a map representing this BSONObject.
| |||||||||||
Checks if this object contains a field with the given name.
| s | Field name for which to check |
|---|
This method is deprecated.
No replacement.
Deprecated
Gets a field from this object by a given name.
| key | The name of the field fetch |
|---|
Returns this object's fields' names
Sets a name/value pair in this object.
| key | Name to set |
|---|---|
| v | Corresponding value |
Sets all key/value pairs from an object into this object
| o | the object |
|---|
Sets all key/value pairs from a map into this object
| m | the map |
|---|
Removes a field with a given name from this object.
| key | The name of the field to remove |
|---|