org.axonframework.eventstore.mongo.criteria
Class Or
java.lang.Object
org.axonframework.eventstore.mongo.criteria.MongoCriteria
org.axonframework.eventstore.mongo.criteria.Or
- All Implemented Interfaces:
- Criteria
public class Or
- extends MongoCriteria
Represents the OR operator for use by the Mongo Event Store.
- Since:
- 2.0
- Author:
- Allard Buijze
Constructor Summary |
Or(MongoCriteria criteria1,
MongoCriteria criteria2)
Initializes an OR operator where one of the given criteria must evaluate to true . |
Method Summary |
com.mongodb.DBObject |
asMongoObject()
Returns the DBObject representing the criterium. |
Or
public Or(MongoCriteria criteria1,
MongoCriteria criteria2)
- Initializes an OR operator where one of the given criteria must evaluate to
true
.
- Parameters:
criteria1
- One of the criteria that must evaluate to truecriteria2
- One of the criteria that must evaluate to true
asMongoObject
public com.mongodb.DBObject asMongoObject()
- Description copied from class:
MongoCriteria
- Returns the DBObject representing the criterium. This DBObject can be used to select documents in a Mongo Query.
- Specified by:
asMongoObject
in class MongoCriteria
- Returns:
- the DBObject representing the criterium
Copyright © 2010-2016. All Rights Reserved.