Package com.mongodb

Interface DBObject

All Superinterfaces:
org.bson.BSONObject
All Known Implementing Classes:
BasicDBList, BasicDBObject

public interface DBObject extends org.bson.BSONObject
This interface adds some specific behaviour to BSONObject for MongoDB documents.
MongoDB documentation
Documents
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether markAsPartialObject() was ever called only matters if you are going to upsert and do not want to risk losing fields.
    void
    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

    containsField, get, keySet, put, putAll, putAll, removeField, toMap
  • Method Details

    • 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() 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