DBPointer
Date: 2015-03-03

org.bson.types

## Class DBPointer

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

- Deprecated.

      @Deprecated
      public class DBPointer
      extends DBRefBase

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DBPointer(BSONObject parent, java.lang.String fieldName, java.lang.String ns, ObjectId id)` Deprecated.
    `DBPointer(java.lang.String ns, ObjectId id)` Deprecated. CTOR used for testing BSON encoding.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ObjectId` | `getId()` Deprecated. Gets the object's id
    `java.lang.String` | `toString()` Deprecated.

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

      `equals, getRef, hashCode`

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

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

- - ### Constructor Detail

    - #### DBPointer

          public DBPointer(java.lang.String ns,
                   ObjectId id)

      Deprecated.
      CTOR used for testing BSON encoding. Otherwise non-functional due to a DBRef needing a parent db object, a fieldName and a db
      Parameters:
        `ns` - namespace to point to
        `id` - value of _id

    - #### DBPointer

          public DBPointer(BSONObject parent,
                   java.lang.String fieldName,
                   java.lang.String ns,
                   ObjectId id)

      Deprecated.

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Deprecated.
      Overrides:
        `toString` in class `DBRefBase`

    - #### getId

          public ObjectId getId()

      Deprecated.
      Description copied from class: `DBRefBase`
      Gets the object's id
      Overrides:
        `getId` in class `DBRefBase`
      Returns: