org.axonframework.eventstore.mongo.criteria
Class SimpleMongoOperator
java.lang.Object
org.axonframework.eventstore.mongo.criteria.MongoCriteria
org.axonframework.eventstore.mongo.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 |
com.mongodb.DBObject |
asMongoObject()
Returns the DBObject 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
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.