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 Summary
Modifier and TypeFieldDescriptionstatic final DBCallbackFactory
TheDBCallbackFactory
forDefaultDBCallback
instances. -
Constructor Summary
-
Method Summary
Methods 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, setRoot
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bson.BSONCallback
arrayDone, 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
-
FACTORY
TheDBCallbackFactory
forDefaultDBCallback
instances.
-
-
Constructor Details
-
DefaultDBCallback
Creates a new DefaultDBCallback. If the Collection is null, it usesDBCollectionObjectFactory
to 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:
create
in classBasicBSONCallback
-
create
- Overrides:
create
in classBasicBSONCallback
-
gotDBRef
- Specified by:
gotDBRef
in interfaceBSONCallback
- Overrides:
gotDBRef
in classBasicBSONCallback
-
objectDone
- Specified by:
objectDone
in interfaceBSONCallback
- Overrides:
objectDone
in classBasicBSONCallback
-