com.mongodb
Class LazyDBObject

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

public class LazyDBObject
extends LazyBSONObject
implements DBObject


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bson.LazyBSONObject
LazyBSONObject.LazyBSONKeySet
 
Field Summary
 
Fields inherited from class org.bson.LazyBSONObject
_callback, _doc_start_offset, _input
 
Constructor Summary
LazyDBObject(BSONByteBuffer buff, int offset, LazyBSONCallback cbk)
           
LazyDBObject(BSONByteBuffer buff, LazyBSONCallback cbk)
           
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, entrySet, equals, get, getBSONSize, getElementBSONSize, getElementType, getElementValue, hashCode, isElementEmpty, isEmpty, keySet, pipe, put, putAll, putAll, removeField, sizeCString, toMap, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.bson.BSONObject
containsField, containsKey, get, keySet, put, putAll, putAll, removeField, toMap
 

Constructor Detail

LazyDBObject

public LazyDBObject(BSONByteBuffer buff,
                    LazyBSONCallback cbk)

LazyDBObject

public LazyDBObject(BSONByteBuffer buff,
                    int offset,
                    LazyBSONCallback cbk)

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