com.mongodb
Class DBRefBase

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

public class DBRefBase
extends java.lang.Object

Base class for DBRefs.


Constructor Summary
DBRefBase(DB db, java.lang.String ns, java.lang.Object id)
           
 
Method Summary
 DBObject fetch()
           
 DB getDB()
          Get this ref's database.
 java.lang.Object getId()
          Get this ref's $id.
 java.lang.String getRef()
          Get this ref's $ref (the collection name).
 java.lang.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,
                 java.lang.String ns,
                 java.lang.Object id)
Method Detail

fetch

public DBObject fetch()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getId

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


getRef

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


getDB

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