@Deprecated public class RawDBObject extends Object implements DBObject
Modifier and Type | Method and Description |
---|---|
boolean |
containsField(String field)
Deprecated.
Checks if this object contains a field with the given name.
|
boolean |
containsKey(String key)
Deprecated.
|
Object |
get(String key)
Deprecated.
Gets a field from this object by a given name.
|
boolean |
isPartialObject()
Deprecated.
whether markAsPartialObject was ever called
only matters if you are going to upsert and do not want to risk losing fields
|
Set<String> |
keySet()
Deprecated.
Returns this object's fields' names
|
void |
markAsPartialObject()
Deprecated.
if this object was retrieved with only some fields (using a field filter)
this method will be called to mark it as such.
|
Object |
put(String key,
Object v)
Deprecated.
Sets a name/value pair in this object.
|
void |
putAll(BSONObject o)
Deprecated.
Sets all key/value pairs from an object into this object
|
void |
putAll(Map m)
Deprecated.
Sets all key/value pairs from a map into this object
|
Object |
removeField(String key)
Deprecated.
Removes a field with a given name from this object.
|
Map |
toMap()
Deprecated.
Returns a map representing this BSONObject.
|
String |
toString()
Deprecated.
|
public Object get(String key)
BSONObject
get
in interface BSONObject
key
- The name of the field fetchpublic Map toMap()
BSONObject
toMap
in interface BSONObject
public Object put(String key, Object v)
BSONObject
put
in interface BSONObject
key
- Name to setv
- Corresponding valuepublic void putAll(BSONObject o)
BSONObject
putAll
in interface BSONObject
o
- the objectpublic void putAll(Map m)
BSONObject
putAll
in interface BSONObject
m
- the mappublic Object removeField(String key)
BSONObject
removeField
in interface BSONObject
key
- The name of the field to remove@Deprecated public boolean containsKey(String key)
BSONObject
containsKey
in interface BSONObject
public boolean containsField(String field)
BSONObject
containsField
in interface BSONObject
field
- Field name for which to checkpublic Set<String> keySet()
BSONObject
keySet
in interface BSONObject
public boolean isPartialObject()
DBObject
isPartialObject
in interface DBObject
public void markAsPartialObject()
DBObject
markAsPartialObject
in interface DBObject