public class DBRef
extends java.lang.Object
implements java.io.Serializable
| 构造器和说明 |
|---|
DBRef(java.lang.String collectionName,
java.lang.Object id)
Construct an instance.
|
DBRef(java.lang.String databaseName,
java.lang.String collectionName,
java.lang.Object id)
Construct an instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCollectionName()
Gets the name of the collection in which the referenced document is stored.
|
java.lang.String |
getDatabaseName()
Gets the name of the database in which the referenced document is stored.
|
java.lang.Object |
getId()
Gets the _id of the referenced document
|
int |
hashCode() |
java.lang.String |
toString() |
public DBRef(java.lang.String collectionName,
java.lang.Object id)
collectionName - the name of the collection where the document is storedid - the object idpublic DBRef(java.lang.String databaseName,
java.lang.String collectionName,
java.lang.Object id)
databaseName - the name of the database where the document is storedcollectionName - the name of the collection where the document is storedid - the object idpublic java.lang.Object getId()
public java.lang.String getCollectionName()
public java.lang.String getDatabaseName()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object