com.mongodb
Interface DBObject

All Superinterfaces:
BSONObject
All Known Implementing Classes:
BasicDBList, BasicDBObject, CommandResult, GridFSDBFile, GridFSFile, GridFSInputFile, RawDBObject, ReflectionDBObject

public interface DBObject
extends BSONObject

A key-value map that can be saved to the database.


Method Summary
 boolean isPartialObject()
          whether markAsPartialObject was ever called only matters if you are going to upsert and dont' want to risk losing fields
 void markAsPartialObject()
          if this object was loaded with only some fields (using a field filter) this method will be called to notify
 
Methods inherited from interface org.bson.BSONObject
containsField, containsKey, get, keySet, put, putAll, putAll, removeField, toMap
 

Method Detail

markAsPartialObject

void markAsPartialObject()
if this object was loaded with only some fields (using a field filter) this method will be called to notify


isPartialObject

boolean isPartialObject()
whether markAsPartialObject was ever called only matters if you are going to upsert and dont' want to risk losing fields