|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mongodb.DBRefBase
public class DBRefBase
represents a database reference, which points to an object stored in the database
| Constructor Summary | |
|---|---|
DBRefBase(DB db,
String ns,
Object id)
Creates a DBRefBase |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
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) |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DBRefBase(DB db,
String ns,
Object id)
db - the databasens - the namespace where the object is storedid - the object id| Method Detail |
|---|
public DBObject fetch()
throws MongoException
MongoExceptionpublic String toString()
toString in class Objectpublic Object getId()
public String getRef()
public DB getDB()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||