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