com.mongodb
Class LazyDBObject
java.lang.Object
org.bson.LazyBSONObject
com.mongodb.LazyDBObject
- All Implemented Interfaces:
- DBObject, BSONObject
- Direct Known Subclasses:
- LazyWriteableDBObject
public class LazyDBObject
- extends LazyBSONObject
- implements DBObject
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 |
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)
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