com.mongodb
Class LazyDBObject

java.lang.Object
  extended by org.bson.LazyBSONObject
      extended by com.mongodb.LazyDBObject
All Implemented Interfaces:
DBObject, BSONObject

public class LazyDBObject
extends LazyBSONObject
implements DBObject


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bson.LazyBSONObject
LazyBSONObject.LazyBSONIterator, LazyBSONObject.LazyBSONKeySet
 
Constructor Summary
LazyDBObject(byte[] data, int offset, LazyBSONCallback cbk)
           
LazyDBObject(byte[] data, LazyBSONCallback cbk)
           
 
Method Summary
 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 class org.bson.LazyBSONObject
containsField, containsKey, get, getBSONSize, isEmpty, keySet, put, putAll, putAll, readBinary, removeField, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bson.BSONObject
containsField, containsKey, get, keySet, put, putAll, putAll, removeField, toMap
 

Constructor Detail

LazyDBObject

public LazyDBObject(byte[] data,
                    LazyBSONCallback cbk)

LazyDBObject

public LazyDBObject(byte[] data,
                    int offset,
                    LazyBSONCallback cbk)
Method Detail

markAsPartialObject

public void markAsPartialObject()
Description copied from interface: DBObject
if this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.

Specified by:
markAsPartialObject in interface DBObject

isPartialObject

public boolean isPartialObject()
Description copied from interface: DBObject
whether markAsPartialObject was ever called only matters if you are going to upsert and do not want to risk losing fields

Specified by:
isPartialObject in interface DBObject