org.axonframework.mongo3.eventstore.criteria
Class CollectionCriteria
java.lang.Object
org.axonframework.mongo3.eventstore.criteria.MongoCriteria
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. |
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
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.