com.mongodb
Constructor and Description |
---|
DBRefBase(DB db,
java.lang.String ns,
java.lang.Object id)
Creates a DBRefBase
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
DBObject |
fetch()
fetches the object referenced from the database
|
DB |
getDB()
Gets the database
|
java.lang.Object |
getId()
Gets the object's id
|
java.lang.String |
getRef()
Gets the object's namespace (collection name)
|
int |
hashCode() |
java.lang.String |
toString() |
public DBRefBase(DB db, java.lang.String ns, java.lang.Object id)
db
- the databasens
- the namespace where the object is storedid
- the object idpublic DBObject fetch() throws MongoException
MongoException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getId()
public java.lang.String getRef()
public DB getDB()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object