Package com.mongodb
Class LazyDBCallback
java.lang.Object
org.bson.EmptyBSONCallback
org.bson.LazyBSONCallback
com.mongodb.LazyDBCallback
- All Implemented Interfaces:
DBCallback,BSONCallback
@Deprecated(since="2021-05-27")
public class LazyDBCallback
extends LazyBSONCallback
implements DBCallback
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A
BSONCallback for the creation of LazyDBObject and LazyDBList instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateArray(byte[] bytes, int offset) Deprecated.Create aLazyBSONListfrom the given bytes starting from the given offset.createDBRef(String ns, ObjectId id) Deprecated.This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).createObject(byte[] bytes, int offset) Deprecated.Create aLazyBSONObjectinstance from the given bytes starting from the given offset.Methods inherited from class org.bson.LazyBSONCallback
get, gotBinary, resetMethods inherited from class org.bson.EmptyBSONCallback
arrayDone, arrayStart, arrayStart, createBSONCallback, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectDone, objectStart, objectStartMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bson.BSONCallback
arrayDone, arrayStart, arrayStart, createBSONCallback, get, gotBinary, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDBRef, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectDone, objectStart, objectStart, reset
-
Constructor Details
-
LazyDBCallback
Deprecated.Construct an instance.- Parameters:
collection- theDBCollectioncontaining the document. This parameter is no longer used.
-
-
Method Details
-
createObject
Deprecated.Description copied from class:LazyBSONCallbackCreate aLazyBSONObjectinstance from the given bytes starting from the given offset.- Overrides:
createObjectin classLazyBSONCallback- Parameters:
bytes- the raw BSON bytesoffset- the offset into the bytes- Returns:
- the LazyBSONObject
-
createArray
Deprecated.Description copied from class:LazyBSONCallbackCreate aLazyBSONListfrom the given bytes starting from the given offset.- Overrides:
createArrayin classLazyBSONCallback- Parameters:
bytes- the raw BSON bytesoffset- the offset into the bytes- Returns:
- the LazyBSONList
-
createDBRef
Deprecated.Description copied from class:LazyBSONCallbackThis is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).- Overrides:
createDBRefin classLazyBSONCallback- Parameters:
ns- the namespace of the referenceid- the identifier of the reference- Returns:
- object to be used as reference representation
-