Package com.mongodb
Class LazyDBCallback
- java.lang.Object
-
- org.bson.EmptyBSONCallback
-
- org.bson.LazyBSONCallback
-
- com.mongodb.LazyDBCallback
-
- All Implemented Interfaces:
DBCallback
,BSONCallback
public class LazyDBCallback extends LazyBSONCallback implements DBCallback
ABSONCallback
for the creation ofLazyDBObject
andLazyDBList
instances.
-
-
Constructor Summary
Constructors Constructor Description LazyDBCallback(DBCollection collection)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List
createArray(byte[] bytes, int offset)
Object
createDBRef(String ns, ObjectId id)
Object
createObject(byte[] bytes, int offset)
-
Methods inherited from class org.bson.LazyBSONCallback
get, gotBinary, reset
-
Methods inherited from class org.bson.EmptyBSONCallback
arrayDone, arrayStart, arrayStart, createBSONCallback, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectDone, objectStart, objectStart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bson.BSONCallback
arrayDone, arrayStart, arrayStart, createBSONCallback, get, gotBinary, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectDone, objectStart, objectStart, reset
-
-
-
-
Constructor Detail
-
LazyDBCallback
public LazyDBCallback(@Nullable DBCollection collection)
Construct an instance.- Parameters:
collection
- theDBCollection
containing the document. This parameter is no longer used.
-
-
Method Detail
-
createObject
public Object createObject(byte[] bytes, int offset)
- Overrides:
createObject
in classLazyBSONCallback
-
createArray
public List createArray(byte[] bytes, int offset)
- Overrides:
createArray
in classLazyBSONCallback
-
createDBRef
public Object createDBRef(String ns, ObjectId id)
- Overrides:
createDBRef
in classLazyBSONCallback
-
-