public class DefaultDBCallback extends BasicBSONCallback implements DBCallback
Modifier and Type | Field and Description |
---|---|
static DBCallbackFactory |
FACTORY |
Constructor and Description |
---|
DefaultDBCallback(DBCollection coll) |
Modifier and Type | Method and Description |
---|---|
BSONObject |
create() |
BSONObject |
create(boolean array,
List<String> path) |
void |
gotDBRef(String name,
String ns,
ObjectId id)
Invoked when
BSONDecoder encountered a DBPointer(0x0c) type field in a byte sequence. |
Object |
objectDone() |
void |
objectStart(boolean array,
String name) |
void |
reset() |
_put, arrayDone, arrayStart, arrayStart, createBSONCallback, createList, cur, curName, get, gotBinary, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, isStackEmpty, objectStart, objectStart, objectStart, setRoot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
arrayDone, arrayStart, arrayStart, createBSONCallback, get, gotBinary, gotBinaryArray, gotBoolean, gotCode, gotCodeWScope, gotDate, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, objectStart, objectStart, objectStart
public static DBCallbackFactory FACTORY
public DefaultDBCallback(DBCollection coll)
public void gotDBRef(String name, String ns, ObjectId id)
BSONCallback
BSONDecoder
encountered a DBPointer(0x0c) type field in a byte sequence.gotDBRef
in interface BSONCallback
gotDBRef
in class BasicBSONCallback
name
- the name of the fieldns
- the namespace to which reference is pointing toid
- the if of the object to which reference is pointing topublic void objectStart(boolean array, String name)
objectStart
in class BasicBSONCallback
public Object objectDone()
objectDone
in interface BSONCallback
objectDone
in class BasicBSONCallback
public BSONObject create()
create
in class BasicBSONCallback
MongoException
public BSONObject create(boolean array, List<String> path)
create
in class BasicBSONCallback
array
- path
- MongoException
public void reset()
reset
in interface BSONCallback
reset
in class BasicBSONCallback