public class DBRef extends Object implements Serializable
| Constructor and Description | 
|---|
| DBRef(String collectionName,
     Object id)Construct an instance. | 
| DBRef(String databaseName,
     String collectionName,
     Object id)Construct an instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| String | getCollectionName()Gets the name of the collection in which the referenced document is stored. | 
| String | getDatabaseName()Gets the name of the database in which the referenced document is stored. | 
| Object | getId()Gets the _id of the referenced document | 
| int | hashCode() | 
| String | toString() | 
public DBRef(String collectionName, Object id)
collectionName - the name of the collection where the document is storedid - the object idpublic Object getId()
public String getCollectionName()
public String getDatabaseName()