org.axonframework.eventstore.mongo.criteria
Class MongoProperty

java.lang.Object
  extended by org.axonframework.eventstore.mongo.criteria.MongoProperty
All Implemented Interfaces:
Property

public class MongoProperty
extends Object
implements Property

Property implementation for use by the Mongo Event Store.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
MongoProperty(String propertyName)
          Initialize a property for the given propertyName.
 
Method Summary
 String getName()
          Returns the name of the property.
 MongoCriteria greaterThan(Object expression)
           
 MongoCriteria greaterThanEquals(Object expression)
           
 MongoCriteria in(Object expression)
           
 MongoCriteria is(Object expression)
           
 MongoCriteria isNot(Object expression)
           
 MongoCriteria lessThan(Object expression)
           
 MongoCriteria lessThanEquals(Object expression)
           
 MongoCriteria notIn(Object expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MongoProperty

public MongoProperty(String propertyName)
Initialize a property for the given propertyName.

Parameters:
propertyName - The name of the property of the Mongo document.
Method Detail

lessThan

public MongoCriteria lessThan(Object expression)
Specified by:
lessThan in interface Property

lessThanEquals

public MongoCriteria lessThanEquals(Object expression)
Specified by:
lessThanEquals in interface Property

greaterThan

public MongoCriteria greaterThan(Object expression)
Specified by:
greaterThan in interface Property

greaterThanEquals

public MongoCriteria greaterThanEquals(Object expression)
Specified by:
greaterThanEquals in interface Property

is

public MongoCriteria is(Object expression)
Specified by:
is in interface Property

isNot

public MongoCriteria isNot(Object expression)
Specified by:
isNot in interface Property

in

public MongoCriteria in(Object expression)
Specified by:
in in interface Property

notIn

public MongoCriteria notIn(Object expression)
Specified by:
notIn in interface Property

getName

public String getName()
Returns the name of the property.

Returns:
the name of the property


Copyright © 2010-2013. All Rights Reserved.