public class Equals extends MongoCriteria
Constructor and Description |
---|
Equals(MongoProperty property,
Object expression)
Creates an equal instance that requires the given property to equal the given
expression . |
Modifier and Type | Method and Description |
---|---|
com.mongodb.DBObject |
asMongoObject()
Returns the DBObject representing the criterium.
|
and, or, toString
public Equals(MongoProperty property, Object expression)
expression
. The
expression may be either a fixed value, or another MongoProperty.property
- The property to evaluateexpression
- The expression to compare the property withpublic com.mongodb.DBObject asMongoObject()
MongoCriteria
asMongoObject
in class MongoCriteria
Copyright © 2010-2014. All Rights Reserved.