@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)
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)
UnsupportedOperationException
.put
in interface BSONObject
key
- Name to setv
- Corresponding valueUnsupportedOperationException
public void putAll(BSONObject o)
UnsupportedOperationException
.putAll
in interface BSONObject
o
- the objectUnsupportedOperationException
public void putAll(Map m)
UnsupportedOperationException
.putAll
in interface BSONObject
m
- the mapUnsupportedOperationException
public Object removeField(String key)
UnsupportedOperationException
.removeField
in interface BSONObject
key
- The name of the field to removeUnsupportedOperationException
@Deprecated public boolean containsKey(String key)
BSONObject
containsKey
in interface BSONObject
key
- the key to checkpublic 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
DBObject.markAsPartialObject()
was ever called only matters if you are going to upsert and do not want to risk losing fields.isPartialObject
in interface DBObject
public void markAsPartialObject()
DBObject
markAsPartialObject
in interface DBObject