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 obj) |
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)
|
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()
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 obj)
equals
in class java.lang.Object