org.axonframework.mongo3.eventstore.criteria
Class CollectionCriteria

java.lang.Object
  extended by org.axonframework.mongo3.eventstore.criteria.MongoCriteria
      extended by org.axonframework.mongo3.eventstore.criteria.CollectionCriteria
All Implemented Interfaces:
Criteria

public class CollectionCriteria
extends MongoCriteria

Implementation of Collection operators for the Mongo Criteria, such as "In" and "NotIn".

Since:
2.0
Author:
Allard Buijze

Constructor Summary
CollectionCriteria(MongoProperty property, String operator, Object expression)
          Returns a criterion that requires the given property value to be present in the given expression to 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

CollectionCriteria

public CollectionCriteria(MongoProperty property,
                          String operator,
                          Object expression)
Returns a criterion that requires the given property value to be present in the given expression to evaluate to true.

Parameters:
property - The property to match
operator - The collection operator to use
expression - The expression to that expresses the collection to match against the property
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.