public class SimpleCriterion extends AbstractCriterion
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleCriterion.Operator |
| Constructor and Description |
|---|
SimpleCriterion(SimpleCriterion.Operator operator,
java.lang.Object value) |
SimpleCriterion(java.lang.String operator,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
static MqlCriterionFunction |
createForOperator(java.lang.String functionName,
SimpleCriterion.Operator operator,
int minArgs,
int maxArgs,
int exactArgs,
java.lang.Class<?>... types)
Creates an
MqlCriterionFunction for the given SimpleCriterion.Operator
with the given restrictions. |
java.lang.String |
getOperator() |
java.lang.Object |
getValue() |
java.lang.Object |
toQueryObject(ObjectMapper mapper)
Returns the query representation of the
Criterion. |
public SimpleCriterion(java.lang.String operator,
java.lang.Object value)
public SimpleCriterion(SimpleCriterion.Operator operator, java.lang.Object value)
public java.lang.String getOperator()
public java.lang.Object getValue()
public java.lang.Object toQueryObject(ObjectMapper mapper)
Criterion.
Most of the time this will be a DBObject, but
it can be anything accepted by the MongoDB java driver.toQueryObject in interface CriteriontoQueryObject in class AbstractCriterionmapper - the ObjectMapperObjectpublic static final MqlCriterionFunction createForOperator(java.lang.String functionName, SimpleCriterion.Operator operator, int minArgs, int maxArgs, int exactArgs, java.lang.Class<?>... types)
MqlCriterionFunction for the given SimpleCriterion.Operator
with the given restrictions.operator - minArgs - maxArgs - exactArgs - types - Copyright © 2013. All Rights Reserved.