org.axonframework.mongo3.eventstore.criteria
Class SimpleMongoOperator

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

Constructor Summary
SimpleMongoOperator(MongoProperty property, String operator, Object expression)
          Initializes an criterium where the given property, operator and expression make a match.
 
Method Summary
 org.bson.conversions.Bson asBson()
          Returns the Bson representing the criterium.
 
Methods inherited from class org.axonframework.mongo3.eventstore.criteria.MongoCriteria
and, or, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 match
operator - The operator to match with
expression - The expression to match against the property
Method Detail

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.