public class FieldCriterion extends AbstractCriterion implements DocumentCriterion
| Constructor and Description |
|---|
FieldCriterion(java.lang.String fieldName,
Criterion criterion) |
| Modifier and Type | Method and Description |
|---|---|
Criterion |
getCriterion() |
java.lang.String |
getFieldName() |
com.mongodb.DBObject |
toQueryObject(ObjectMapper mapper)
Returns the query representation of the
Criterion. |
public FieldCriterion(java.lang.String fieldName,
Criterion criterion)
public java.lang.String getFieldName()
public Criterion getCriterion()
public com.mongodb.DBObject toQueryObject(ObjectMapper mapper)
AbstractCriterionCriterion.
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 interface DocumentCriteriontoQueryObject in class AbstractCriterionmapper - the ObjectMapperObjectCopyright © 2013. All Rights Reserved.