com.mongodb
Class DBCallback

java.lang.Object
  extended by org.bson.BasicBSONCallback
      extended by com.mongodb.DBCallback
All Implemented Interfaces:
BSONCallback

public class DBCallback
extends BasicBSONCallback


Nested Class Summary
static interface DBCallback.Factory
           
 
Field Summary
static DBCallback.Factory FACTORY
           
 
Constructor Summary
DBCallback(DBCollection coll)
           
 
Method Summary
 BSONObject create()
           
 BSONObject create(boolean array, List<String> path)
           
 void gotDBRef(String name, String ns, ObjectId id)
           
 Object objectDone()
           
 void objectStart(boolean array, String name)
           
 void reset()
           
 
Methods inherited from class org.bson.BasicBSONCallback
_put, arrayDone, arrayStart, arrayStart, cur, get, gotBinary, gotBinaryArray, gotBoolean, gotDate, gotDouble, gotInt, gotLong, gotMaxKey, gotMinKey, gotNull, gotObjectId, gotRegex, gotString, gotSymbol, gotTimestamp, gotUndefined, gotUUID, isStackEmpty, objectStart, objectStart, objectStart, setRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY

public static DBCallback.Factory FACTORY
Constructor Detail

DBCallback

public DBCallback(DBCollection coll)
Method Detail

gotDBRef

public void gotDBRef(String name,
                     String ns,
                     ObjectId id)
Specified by:
gotDBRef in interface BSONCallback
Overrides:
gotDBRef in class BasicBSONCallback

objectStart

public void objectStart(boolean array,
                        String name)
Overrides:
objectStart in class BasicBSONCallback

objectDone

public Object objectDone()
Specified by:
objectDone in interface BSONCallback
Overrides:
objectDone in class BasicBSONCallback

create

public BSONObject create()
Overrides:
create in class BasicBSONCallback

create

public BSONObject create(boolean array,
                         List<String> path)
Overrides:
create in class BasicBSONCallback

reset

public void reset()
Overrides:
reset in class BasicBSONCallback