public class Or extends MongoCriteria
Constructor and Description |
---|
Or(MongoCriteria criteria1,
MongoCriteria criteria2)
Initializes an OR operator where one of the given criteria must evaluate to
true . |
Modifier and Type | Method and Description |
---|---|
com.mongodb.DBObject |
asMongoObject()
Returns the DBObject representing the criterium.
|
and, or, toString
public Or(MongoCriteria criteria1, MongoCriteria criteria2)
true
.criteria1
- One of the criteria that must evaluate to truecriteria2
- One of the criteria that must evaluate to truepublic com.mongodb.DBObject asMongoObject()
MongoCriteria
asMongoObject
in class MongoCriteria
Copyright © 2010-2014. All Rights Reserved.