|
||||||||||
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 idMethod Detail |
---|
public DBObject fetch() throws MongoException
MongoException
public String toString()
toString
in class Object
public Object getId()
public String getRef()
public DB getDB()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |