org.axonframework.eventstore.mongo.criteria
Class CollectionCriteria
java.lang.Object
org.axonframework.eventstore.mongo.criteria.MongoCriteria
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. |
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 matchoperator
- The collection operator to useexpression
- The expression to that expresses the collection to match against the property
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.