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