org.axonframework.eventstore.mongo.criteria
Class Equals

java.lang.Object
  extended by org.axonframework.eventstore.mongo.criteria.MongoCriteria
      extended by org.axonframework.eventstore.mongo.criteria.Equals
All Implemented Interfaces:
Criteria

public class Equals
extends MongoCriteria

Representation of an Equals operator for Mongo selection criteria.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
Equals(MongoProperty property, Object expression)
          Creates an equal instance that requires the given property to equal the given expression.
 
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

Equals

public Equals(MongoProperty property,
              Object expression)
Creates an equal instance that requires the given property to equal the given expression. The expression may be either a fixed value, or another MongoProperty.

Parameters:
property - The property to evaluate
expression - The expression to compare the property with
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.