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, java.util.List<java.lang.String> path)
           
 void gotDBRef(java.lang.String name, java.lang.String ns, ObjectId id)
           
 java.lang.Object objectDone()
           
 void objectStart(boolean array, java.lang.String name)
           
 void reset()
           
 
Methods inherited from class org.bson.BasicBSONCallback
_put, arrayDone, arrayStart, arrayStart, createBSONCallback, cur, 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
 
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(java.lang.String name,
                     java.lang.String ns,
                     ObjectId id)
Specified by:
gotDBRef in interface BSONCallback
Overrides:
gotDBRef in class BasicBSONCallback

objectStart

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

objectDone

public java.lang.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,
                         java.util.List<java.lang.String> path)
Overrides:
create in class BasicBSONCallback

reset

public void reset()
Specified by:
reset in interface BSONCallback
Overrides:
reset in class BasicBSONCallback