org.axonframework.mongo3.eventstore.criteria
Class Or
java.lang.Object
org.axonframework.mongo3.eventstore.criteria.MongoCriteria
org.axonframework.mongo3.eventstore.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 |
org.bson.conversions.Bson |
asBson()
Returns the Bson 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
asBson
public org.bson.conversions.Bson asBson()
- Description copied from class:
MongoCriteria
- Returns the Bson representing the criterium. This DBObject can be used to select documents in a Mongo Query.
- Specified by:
asBson
in class MongoCriteria
- Returns:
- the Bson representing the criterium
Copyright © 2010-2016. All Rights Reserved.