public class DBRef extends DBRefBase
Constructor and Description |
---|
DBRef(BSONObject o)
Creates a DBRef
|
DBRef(java.lang.String ns,
java.lang.Object id)
Creates a DBRef
|
public DBRef(BSONObject o)
o
- a BSON object representing the referencepublic DBRef(java.lang.String ns, java.lang.Object id)
ns
- the namespace where the object is storedid
- the object id