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.ABSONCallback
for the creation ofLazyDBObject
andLazyDBList
instances.
-
-
Constructor Summary
Constructors Constructor Description LazyDBCallback(DBCollection collection)
Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List
createArray(byte[] bytes, int offset)
Deprecated.Create aLazyBSONList
from the given bytes starting from the given offset.java.lang.Object
createDBRef(java.lang.String ns, ObjectId id)
Deprecated.This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).java.lang.Object
createObject(byte[] bytes, int offset)
Deprecated.Create aLazyBSONObject
instance from the given bytes starting from the given offset.-
Methods inherited from class org.bson.LazyBSONCallback
get, gotBinary, reset
-
Methods 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, objectStart
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
LazyDBCallback
public LazyDBCallback(@Nullable DBCollection collection)
Deprecated.Construct an instance.- Parameters:
collection
- theDBCollection
containing the document. This parameter is no longer used.
-
-
Method Detail
-
createObject
public java.lang.Object createObject(byte[] bytes, int offset)
Deprecated.Description copied from class:LazyBSONCallback
Create aLazyBSONObject
instance from the given bytes starting from the given offset.- Overrides:
createObject
in classLazyBSONCallback
- Parameters:
bytes
- the raw BSON bytesoffset
- the offset into the bytes- Returns:
- the LazyBSONObject
-
createArray
public java.util.List createArray(byte[] bytes, int offset)
Deprecated.Description copied from class:LazyBSONCallback
Create aLazyBSONList
from the given bytes starting from the given offset.- Overrides:
createArray
in classLazyBSONCallback
- Parameters:
bytes
- the raw BSON bytesoffset
- the offset into the bytes- Returns:
- the LazyBSONList
-
createDBRef
public java.lang.Object createDBRef(java.lang.String ns, ObjectId id)
Deprecated.Description copied from class:LazyBSONCallback
This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).- Overrides:
createDBRef
in classLazyBSONCallback
- Parameters:
ns
- the namespace of the referenceid
- the identifier of the reference- Returns:
- object to be used as reference representation
-
-