public class

DBRefBase

extends Object
java.lang.Object
   ↳ com.mongodb.DBRefBase
Known Direct Subclasses

Class Overview

represents a database reference, which points to an object stored in the database

Summary

Public Constructors
DBRefBase(DB db, String ns, Object id)
Creates a DBRefBase
Public Methods
boolean equals(Object obj)
DBObject fetch()
fetches the object referenced from the database
DB getDB()
Gets the database
Object getId()
Gets the object's id
String getRef()
Gets the object's namespace (collection name)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

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

Creates a DBRefBase

Parameters
db the database
ns the namespace where the object is stored
id the object id

Public Methods

public boolean equals (Object obj)

public DBObject fetch ()

fetches the object referenced from the database

public DB getDB ()

Gets the database

public Object getId ()

Gets the object's id

public String getRef ()

Gets the object's namespace (collection name)

public String toString ()