org.axonframework.mongo3.eventstore.criteria
Class Equals
java.lang.Object
org.axonframework.mongo3.eventstore.criteria.MongoCriteria
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. |
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 evaluateexpression
- The expression to compare the property with
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.