DBRef
Date: 2015-03-03

org.bson.types

## Class DBRef

- java.lang.Object
- - org.bson.types.DBRefBase
  - - org.bson.types.DBRef

-     public class DBRef
      extends DBRefBase

  overrides DBRefBase to understand a BSONObject representation of a reference.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DBRef(BSONObject o)` Creates a DBRef
    `DBRef(java.lang.String ns, java.lang.Object id)` Creates a DBRef

  - ### Method Summary

    - ### Methods inherited from class org.bson.types.DBRefBase

      `equals, getId, getRef, hashCode, toString`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DBRef

          public DBRef(BSONObject o)

      Creates a DBRef
      Parameters:
        `o` - a BSON object representing the reference

    - #### DBRef

          public DBRef(java.lang.String ns,
               java.lang.Object id)

      Creates a DBRef
      Parameters:
        `ns` - the namespace where the object is stored
        `id` - the object id