com.mongodb
Class DBRefBase

java.lang.Object
  extended by com.mongodb.DBRefBase
Direct Known Subclasses:
DBPointer, DBRef

public class DBRefBase
extends Object

Base class for DBRefs.


Constructor Summary
DBRefBase(DB db, String ns, Object id)
           
 
Method Summary
 DBObject fetch()
           
 DB getDB()
          Get this ref's database.
 Object getId()
          Get this ref's $id.
 String getRef()
          Get this ref's $ref (the collection name).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBRefBase

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

fetch

public DBObject fetch()

toString

public String toString()
Overrides:
toString in class Object

getId

public Object getId()
Get this ref's $id.


getRef

public String getRef()
Get this ref's $ref (the collection name).


getDB

public DB getDB()
Get this ref's database.