Constructor and Description |
---|
MongoProperty(String propertyName)
Initialize a property for the given
propertyName . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the property.
|
MongoCriteria |
greaterThan(Object expression)
Returns a criteria instance where the property must be "greater than" the given
expression . |
MongoCriteria |
greaterThanEquals(Object expression)
Returns a criteria instance where the property must be "greater than" or "equal to" the given
expression . |
MongoCriteria |
in(Object expression)
Returns a criteria instance where the property must be "in" the given
expression . |
MongoCriteria |
is(Object expression)
Returns a criteria instance where the property must "equal" the given
expression . |
MongoCriteria |
isNot(Object expression)
Returns a criteria instance where the property must be "not equal to" the given
expression . |
MongoCriteria |
lessThan(Object expression)
Returns a criteria instance where the property must be "less than" the given
expression . |
MongoCriteria |
lessThanEquals(Object expression)
Returns a criteria instance where the property must be "less than" or "equal to" the given
expression . |
MongoCriteria |
notIn(Object expression)
Returns a criteria instance where the property must be "not in" the given
expression . |
public MongoProperty(String propertyName)
propertyName
.propertyName
- The name of the property of the Mongo document.public MongoCriteria lessThan(Object expression)
Property
expression
. Some event
stores also allow the given expression to be a property.public MongoCriteria lessThanEquals(Object expression)
Property
expression
. Some event stores also allow the given expression to be a property.lessThanEquals
in interface Property
expression
- The expression to match against the propertypublic MongoCriteria greaterThan(Object expression)
Property
expression
. Some
event stores also allow the given expression to be a property.greaterThan
in interface Property
expression
- The expression to match against the propertypublic MongoCriteria greaterThanEquals(Object expression)
Property
expression
. Some event stores also allow the given expression to be a property.greaterThanEquals
in interface Property
expression
- The expression to match against the propertypublic MongoCriteria is(Object expression)
Property
expression
. Some event stores
also allow the given expression to be a property.public MongoCriteria isNot(Object expression)
Property
expression
. Some
event stores also allow the given expression to be a property.public MongoCriteria in(Object expression)
Property
expression
. Some event stores
also allow the given expression to be a property.
Note that the given expression
must describe a collection of some sort.public MongoCriteria notIn(Object expression)
Property
expression
. Some event
stores also allow the given expression to be a property.public String getName()
Copyright © 2010-2014. All Rights Reserved.