org.axonframework.eventstore.mongo.criteria
Class SimpleMongoOperator

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

Constructor Summary
SimpleMongoOperator(MongoProperty property, String operator, Object expression)
          Initializes an criterium where the given property, operator and expression make a match.
 
Method Summary
 com.mongodb.DBObject asMongoObject()
          Returns the DBObject representing the criterium.
 
Methods inherited from class org.axonframework.eventstore.mongo.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

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.