Package com.mongodb

Class 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 Details

    • LazyDBCallback

      public LazyDBCallback(@Nullable DBCollection collection)
      Deprecated.
      Construct an instance.
      Parameters:
      collection - the DBCollection containing the document. This parameter is no longer used.
  • Method Details

    • createObject

      public Object createObject(byte[] bytes, int offset)
      Deprecated.
      Description copied from class: LazyBSONCallback
      Create a LazyBSONObject instance from the given bytes starting from the given offset.
      Overrides:
      createObject in class LazyBSONCallback
      Parameters:
      bytes - the raw BSON bytes
      offset - the offset into the bytes
      Returns:
      the LazyBSONObject
    • createArray

      public List createArray(byte[] bytes, int offset)
      Deprecated.
      Description copied from class: LazyBSONCallback
      Create a LazyBSONList from the given bytes starting from the given offset.
      Overrides:
      createArray in class LazyBSONCallback
      Parameters:
      bytes - the raw BSON bytes
      offset - the offset into the bytes
      Returns:
      the LazyBSONList
    • createDBRef

      public Object createDBRef(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 class LazyBSONCallback
      Parameters:
      ns - the namespace of the reference
      id - the identifier of the reference
      Returns:
      object to be used as reference representation