@Deprecated public class RawDBObject extends java.lang.Object implements DBObject
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsField(java.lang.String field)
Deprecated.
Checks if this object contains a field with the given name.
|
boolean |
containsKey(java.lang.String key)
Deprecated.
|
java.lang.Object |
get(java.lang.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. |
java.util.Set<java.lang.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.
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object v)
Deprecated.
Always throws
UnsupportedOperationException. |
void |
putAll(BSONObject o)
Deprecated.
Always throws
UnsupportedOperationException. |
void |
putAll(java.util.Map m)
Deprecated.
Always throws
UnsupportedOperationException. |
java.lang.Object |
removeField(java.lang.String key)
Deprecated.
Always throws
UnsupportedOperationException. |
java.util.Map |
toMap()
Deprecated.
Returns a map representing this BSONObject.
|
java.lang.String |
toString()
Deprecated.
|
public java.lang.Object get(java.lang.String key)
BSONObjectget in interface BSONObjectkey - The name of the field fetchpublic java.util.Map toMap()
BSONObjecttoMap in interface BSONObjectpublic java.lang.Object put(java.lang.String key,
java.lang.Object v)
UnsupportedOperationException.put in interface BSONObjectkey - Name to setv - Corresponding valuejava.lang.UnsupportedOperationExceptionpublic void putAll(BSONObject o)
UnsupportedOperationException.putAll in interface BSONObjecto - the objectjava.lang.UnsupportedOperationExceptionpublic void putAll(java.util.Map m)
UnsupportedOperationException.putAll in interface BSONObjectm - the mapjava.lang.UnsupportedOperationExceptionpublic java.lang.Object removeField(java.lang.String key)
UnsupportedOperationException.removeField in interface BSONObjectkey - The name of the field to removejava.lang.UnsupportedOperationException@Deprecated public boolean containsKey(java.lang.String key)
BSONObjectcontainsKey in interface BSONObjectkey - the key to checkpublic boolean containsField(java.lang.String field)
BSONObjectcontainsField in interface BSONObjectfield - Field name for which to checkpublic java.util.Set<java.lang.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 DBObjectpublic java.lang.String toString()
toString in class java.lang.Object