@Deprecated public class DBPointerElement extends AbstractElement
Modifier and Type | Field and Description |
---|---|
static ElementType |
TYPE
Deprecated.
The BSON type for a Object Id.
|
ELEMENT_TYPE
Constructor and Description |
---|
DBPointerElement(String name,
String dbName,
String collectionName,
ObjectId id)
Deprecated.
Constructs a new
DBPointerElement . |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Deprecated.
Accepts the visitor and calls the
Visitor.visitDBPointer(java.lang.String, java.lang.String, java.lang.String, com.allanbank.mongodb.bson.element.ObjectId) method. |
boolean |
equals(Object object)
Deprecated.
Determines if the passed object is of this same type as this object and
if so that its fields are equal.
|
String |
getCollectionName()
Deprecated.
Returns the collectionName value.
|
String |
getDatabaseName()
Deprecated.
Returns the databaseName value.
|
ObjectId |
getId()
Deprecated.
Returns the id value.
|
ElementType |
getType()
Deprecated.
Returns the type for the BSON type.
|
int |
hashCode()
Deprecated.
Computes a reasonable hash code.
|
String |
toString()
Deprecated.
String form of the object.
|
DBPointerElement |
withName(String name)
Deprecated.
Creates a new element with the same type and value as this element but
with the specified name.
|
asElement, find, find, findFirst, findFirst, getName, nullSafeEquals, queryPath, queryPath
public static final ElementType TYPE
public DBPointerElement(String name, String dbName, String collectionName, ObjectId id)
DBPointerElement
.name
- The name for the BSON Object Id.dbName
- The database name.collectionName
- The name of the collection.id
- The object id.public void accept(Visitor visitor)
Visitor.visitDBPointer(java.lang.String, java.lang.String, java.lang.String, com.allanbank.mongodb.bson.element.ObjectId)
method.visitor
- The visitor for the element.Element.accept(Visitor)
public boolean equals(Object object)
equals
in class AbstractElement
object
- The object to compare to.Object.equals(java.lang.Object)
public String getCollectionName()
public String getDatabaseName()
public ObjectId getId()
public ElementType getType()
public int hashCode()
hashCode
in class AbstractElement
public String toString()
toString
in class AbstractElement
Object.toString()
public DBPointerElement withName(String name)
Returns a new DBPointerElement
.
name
- The new name for the element.Copyright © 2011-2012 Allanbank Consulting, Inc.. All Rights Reserved.