org.axonframework.mongo3.eventstore.criteria
Class SimpleMongoOperator
java.lang.Object
org.axonframework.mongo3.eventstore.criteria.MongoCriteria
org.axonframework.mongo3.eventstore.criteria.SimpleMongoOperator
- All Implemented Interfaces:
- Criteria
public class SimpleMongoOperator
- extends MongoCriteria
Implementation of the simple Mongo Operators (those without special structural requirements), such as Less Than,
Less Than Equals, etc.
- Since:
- 2.0
- Author:
- Allard Buijze
Method Summary |
org.bson.conversions.Bson |
asBson()
Returns the Bson representing the criterium. |
SimpleMongoOperator
public SimpleMongoOperator(MongoProperty property,
String operator,
Object expression)
- Initializes an criterium where the given
property
, operator
and
expression
make a match. The expression may be a fixed value, as well as a MongoProperty
- Parameters:
property
- The property to matchoperator
- The operator to match withexpression
- The expression 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.