@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
DBObject.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.
Always throws
UnsupportedOperationException. |
void |
putAll(BSONObject o)
Deprecated.
Always throws
UnsupportedOperationException. |
void |
putAll(Map m)
Deprecated.
Always throws
UnsupportedOperationException. |
Object |
removeField(String key)
Deprecated.
Always throws
UnsupportedOperationException. |
Map |
toMap()
Deprecated.
Returns a map representing this BSONObject.
|
String |
toString()
Deprecated.
|
public Object get(String key)
BSONObjectget in interface BSONObjectkey - The name of the field fetchpublic Map toMap()
BSONObjecttoMap in interface BSONObjectpublic Object put(String key, Object v)
UnsupportedOperationException.put in interface BSONObjectkey - Name to setv - Corresponding valueUnsupportedOperationExceptionpublic void putAll(BSONObject o)
UnsupportedOperationException.putAll in interface BSONObjecto - the objectUnsupportedOperationExceptionpublic void putAll(Map m)
UnsupportedOperationException.putAll in interface BSONObjectm - the mapUnsupportedOperationExceptionpublic Object removeField(String key)
UnsupportedOperationException.removeField in interface BSONObjectkey - The name of the field to removeUnsupportedOperationException@Deprecated public boolean containsKey(String key)
BSONObjectcontainsKey in interface BSONObjectkey - the key to checkpublic boolean containsField(String field)
BSONObjectcontainsField in interface BSONObjectfield - Field name for which to checkpublic Set<String> keySet()
BSONObjectkeySet in interface BSONObjectpublic boolean isPartialObject()
DBObjectDBObject.markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields.isPartialObject in interface DBObjectpublic void markAsPartialObject()
DBObjectmarkAsPartialObject in interface DBObject