Package com.mongodb
Class DefaultDBCallback
- java.lang.Object
 - 
- org.bson.BasicBSONCallback
 - 
- com.mongodb.DefaultDBCallback
 
 
 
- 
- All Implemented Interfaces:
 DBCallback,BSONCallback
@Deprecated(since="2021-05-27") public class DefaultDBCallback extends BasicBSONCallback implements DBCallback
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.An implementation of DBCallback that decodes into a DBObject. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static DBCallbackFactoryFACTORYDeprecated. 
- 
Constructor Summary
Constructors Constructor Description DefaultDBCallback(DBCollection collection)Deprecated.Creates a new DefaultDBCallback. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BSONObjectcreate()Deprecated.Factory method for creating a new BSONObject.BSONObjectcreate(boolean array, java.util.List<java.lang.String> path)Deprecated.Helper method to create either a BSON Object or a BSON List depending upon whether thearrayparameter is true or not.voidgotDBRef(java.lang.String name, java.lang.String namespace, ObjectId id)Deprecated.Invoked whenBSONDecoderencountered aBsonType.DB_POINTERtype field in a byte sequence.java.lang.ObjectobjectDone()Deprecated.Called at the end of the document/array, and returns this object.- 
Methods inherited from class org.bson.BasicBSONCallback
arrayDone, arrayStart, arrayStart, createBSONCallback, get, gotBinary, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectStart, objectStart, reset 
- 
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, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectStart, objectStart, reset 
 - 
 
 - 
 
- 
- 
Field Detail
- 
FACTORY
public static final DBCallbackFactory FACTORY
Deprecated. 
 - 
 
- 
Constructor Detail
- 
DefaultDBCallback
public DefaultDBCallback(DBCollection collection)
Deprecated.Creates a new DefaultDBCallback. If the Collection is null, it usesDBCollectionObjectFactoryto create documents, otherwise it uses the collection's object factory.- Parameters:
 collection- an optionally null Collection that the documents created by this callback belong to.
 
 - 
 
- 
Method Detail
- 
create
public BSONObject create()
Deprecated.Description copied from class:BasicBSONCallbackFactory method for creating a new BSONObject.- Overrides:
 createin classBasicBSONCallback- Returns:
 - a new BasicBSONObject.
 
 
- 
create
public BSONObject create(boolean array, java.util.List<java.lang.String> path)
Deprecated.Description copied from class:BasicBSONCallbackHelper method to create either a BSON Object or a BSON List depending upon whether thearrayparameter is true or not.- Overrides:
 createin classBasicBSONCallback- Parameters:
 array- set to true to create a new BSON List, otherwise will create a new BSONObjectpath- a list of field names to navigate to this field in the document- Returns:
 - the new BSONObject
 
 
- 
gotDBRef
public void gotDBRef(java.lang.String name, java.lang.String namespace, ObjectId id)Deprecated.Description copied from interface:BSONCallbackInvoked whenBSONDecoderencountered aBsonType.DB_POINTERtype field in a byte sequence.- Specified by:
 gotDBRefin interfaceBSONCallback- Overrides:
 gotDBRefin classBasicBSONCallback- Parameters:
 name- the name of the fieldnamespace- the namespace to which reference is pointing toid- the if of the object to which reference is pointing to
 
- 
objectDone
public java.lang.Object objectDone()
Deprecated.Description copied from interface:BSONCallbackCalled at the end of the document/array, and returns this object.- Specified by:
 objectDonein interfaceBSONCallback- Overrides:
 objectDonein classBasicBSONCallback- Returns:
 - the Object that has been read from this section of the document.
 
 
 - 
 
 -