org.axonframework.eventstore.mongo.criteria
Class MongoCriteria

java.lang.Object
  extended by org.axonframework.eventstore.mongo.criteria.MongoCriteria
All Implemented Interfaces:
Criteria
Direct Known Subclasses:
And, CollectionCriteria, Equals, Or, SimpleMongoOperator

public abstract class MongoCriteria
extends Object
implements Criteria

Abstract class for Mongo-based criteria.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
MongoCriteria()
           
 
Method Summary
 Criteria and(Criteria criteria)
           
abstract  com.mongodb.DBObject asMongoObject()
          Returns the DBObject representing the criterium.
 Criteria or(Criteria criteria)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MongoCriteria

public MongoCriteria()
Method Detail

and

public Criteria and(Criteria criteria)
Specified by:
and in interface Criteria

or

public Criteria or(Criteria criteria)
Specified by:
or in interface Criteria

asMongoObject

public abstract com.mongodb.DBObject asMongoObject()
Returns the DBObject representing the criterium. This DBObject can be used to select documents in a Mongo Query.

Returns:
the DBObject representing the criterium

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2013. All Rights Reserved.