Constructor and Description |
---|
DBRefBase(DB db,
String ns,
Object id)
Creates a DBRefBase
|
Modifier and Type | Method and Description |
---|---|
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() |
public DBObject fetch() throws MongoException
MongoException
public Object getId()
public String getRef()
public DB getDB()