|
||||||||||
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 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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, 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 idMethod Detail |
---|
public DBObject fetch()
public String toString()
toString
in class Object
public Object getId()
public String getRef()
public DB getDB()
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |