org.axonframework.eventstore.mongo.criteria
Class Or

java.lang.Object
  extended by org.axonframework.eventstore.mongo.criteria.MongoCriteria
      extended by 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.
 
Methods inherited from class org.axonframework.eventstore.mongo.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

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.