org.axonframework.mongo3.eventstore.criteria
Class Equals

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

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

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.