Package com.mongodb
Class DefaultDBCallback
java.lang.Object
org.bson.BasicBSONCallback
com.mongodb.DefaultDBCallback
- All Implemented Interfaces:
- DBCallback,- BSONCallback
An implementation of DBCallback that decodes into a DBObject.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final DBCallbackFactoryTheDBCallbackFactoryforDefaultDBCallbackinstances.
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.bson.BasicBSONCallback_put, arrayDone, arrayStart, arrayStart, createBSONCallback, createList, cur, curName, get, gotBinary, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, isStackEmpty, objectStart, objectStart, reset, setRootMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bson.BSONCallbackarrayDone, arrayStart, arrayStart, createBSONCallback, get, gotBinary, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDecimal128, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectStart, objectStart, reset
- 
Field Details- 
FACTORYTheDBCallbackFactoryforDefaultDBCallbackinstances.
 
- 
- 
Constructor Details- 
DefaultDBCallbackCreates 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 Details- 
create- Overrides:
- createin class- BasicBSONCallback
 
- 
create- Overrides:
- createin class- BasicBSONCallback
 
- 
gotDBRef- Specified by:
- gotDBRefin interface- BSONCallback
- Overrides:
- gotDBRefin class- BasicBSONCallback
 
- 
objectDone- Specified by:
- objectDonein interface- BSONCallback
- Overrides:
- objectDonein class- BasicBSONCallback
 
 
-