org.axonframework.eventstore.mongo.criteria
Class And
java.lang.Object
org.axonframework.eventstore.mongo.criteria.MongoCriteria
org.axonframework.eventstore.mongo.criteria.And
- All Implemented Interfaces:
- Criteria
public class And
- extends MongoCriteria
Representation of an AND operator for Mongo selection criteria.
- Since:
- 2.0
- Author:
- Allard Buijze
Constructor Summary |
And(MongoCriteria criteria1,
MongoCriteria criteria2)
Returns a criterium that requires both criteria1 and criteria2 to be
true . |
Method Summary |
com.mongodb.DBObject |
asMongoObject()
Returns the DBObject representing the criterium. |
And
public And(MongoCriteria criteria1,
MongoCriteria criteria2)
- Returns a criterium that requires both
criteria1
and criteria2
to be
true
.
- Parameters:
criteria1
- One of the criteria to be evaludatedcriteria2
- One of the criteria to be evaludated
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.