com.mongodb
Class DBPointer

java.lang.Object
  extended by com.mongodb.DBRefBase
      extended by com.mongodb.DBPointer

Deprecated.

@Deprecated
public class DBPointer
extends DBRefBase


Constructor Summary
DBPointer(String ns, ObjectId id)
          Deprecated. CTOR used for testing BSON encoding.
 
Method Summary
 ObjectId getId()
          Deprecated. Gets the object's id
 String toString()
          Deprecated.  
 
Methods inherited from class com.mongodb.DBRefBase
equals, fetch, getDB, getRef, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBPointer

public DBPointer(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
Method Detail

toString

public 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: