DBObject (original) (raw)
- All Superinterfaces:
[BSONObject](../../org/bson/BSONObject.html "interface in org.bson")
All Known Implementing Classes:[BasicDBList](BasicDBList.html "class in com.mongodb")
,[BasicDBObject](BasicDBObject.html "class in com.mongodb")
,[CommandResult](CommandResult.html "class in com.mongodb")
,[GridFSDBFile](gridfs/GridFSDBFile.html "class in com.mongodb.gridfs")
,[GridFSFile](gridfs/GridFSFile.html "class in com.mongodb.gridfs")
,[GridFSInputFile](gridfs/GridFSInputFile.html "class in com.mongodb.gridfs")
,[LazyDBList](LazyDBList.html "class in com.mongodb")
,[LazyDBObject](LazyDBObject.html "class in com.mongodb")
,[ReflectionDBObject](ReflectionDBObject.html "class in com.mongodb")
public interface DBObject
extends BSONObject
This interface adds some specific behaviour to BSONObject for MongoDB documents.
MongoDB documentation
Documents
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type Method Description boolean isPartialObject() Whether markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields. void markAsPartialObject() If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such. * ### Methods inherited from interface org.bson.[BSONObject](../../org/bson/BSONObject.html "interface in org.bson") `[containsField](../../org/bson/BSONObject.html#containsField%28java.lang.String%29), [containsKey](../../org/bson/BSONObject.html#containsKey%28java.lang.String%29), [get](../../org/bson/BSONObject.html#get%28java.lang.String%29), [keySet](../../org/bson/BSONObject.html#keySet%28%29), [put](../../org/bson/BSONObject.html#put%28java.lang.String,java.lang.Object%29), [putAll](../../org/bson/BSONObject.html#putAll%28java.util.Map%29), [putAll](../../org/bson/BSONObject.html#putAll%28org.bson.BSONObject%29), [removeField](../../org/bson/BSONObject.html#removeField%28java.lang.String%29), [toMap](../../org/bson/BSONObject.html#toMap%28%29)`
Method Detail
* #### markAsPartialObject void markAsPartialObject() If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such. * #### isPartialObject boolean isPartialObject() Whether [markAsPartialObject()](#markAsPartialObject%28%29) was ever called only matters if you are going to upsert and do not want to risk losing fields. Returns: true if this has been marked as a partial object