org.axonframework.mongo3.eventstore.criteria
Class Or

java.lang.Object
  extended by org.axonframework.mongo3.eventstore.criteria.MongoCriteria
      extended by 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.
 
Methods inherited from class org.axonframework.mongo3.eventstore.criteria.MongoCriteria
and, or, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 true
criteria2 - One of the criteria that must evaluate to true
Method Detail

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.