public class SimpleMongoOperator extends MongoCriteria
| Constructor and Description |
|---|
SimpleMongoOperator(MongoProperty property,
String operator,
Object expression)
Initializes an criterium where the given
property, operator and
expression
make a match. |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBObject |
asMongoObject()
Returns the DBObject representing the criterium.
|
and, or, toStringpublic SimpleMongoOperator(MongoProperty property, String operator, Object expression)
property, operator and
expression
make a match. The expression may be a fixed value, as well as a MongoPropertyproperty - The property to matchoperator - The operator to match withexpression - The expression to match against the propertypublic com.mongodb.DBObject asMongoObject()
MongoCriteriaasMongoObject in class MongoCriteriaCopyright © 2010-2014. All Rights Reserved.