com.mongodb
Class DBRef

java.lang.Object
  extended by com.mongodb.DBRefBase
      extended by com.mongodb.DBRef

public class DBRef
extends DBRefBase

Database reference class.


MongoDB Doc Links

Constructor Summary
DBRef(DB db, BSONObject o)
           
DBRef(DB db, String ns, Object id)
           
 
Method Summary
static DBObject fetch(DB db, DBObject ref)
           
 
Methods inherited from class com.mongodb.DBRefBase
fetch, getDB, getId, getRef, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBRef

public DBRef(DB db,
             BSONObject o)

DBRef

public DBRef(DB db,
             String ns,
             Object id)
Method Detail

fetch

public static DBObject fetch(DB db,
                             DBObject ref)