org.axonframework.eventstore.mongo.criteria
Class CollectionCriteria

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

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

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.