public interface Criterion
A criterion is part of the definition of an AdvancedCriteria
object, which is used to filter records according to search criteria.
A criterion consists of an operator and typically a fieldName from a Record and a value to compare to. However some operators either don't require a value (eg, isNull) or act on other criteria rather than directly on a Record's fields (eg, the "and" and "or" logical operators).
See com.isomorphic.criteria.criterion package for Criterion implementations.
Modifier and Type | Method and Description |
---|---|
java.lang.String | getFieldName() Gets field name to compare against. |
java.lang.String | getOperatorId() Gets operator id used in search criteria. |
java.lang.Object | getValue() Gets value used to compare to. |
void | setFieldName(java.lang.String fieldName) Sets field name to compare against. |
void | setOperatorId(java.lang.String operator) Sets operator id to use in search criteria. |
void | setValue(java.lang.Object value) Sets value used to compare to. |
java.lang.String getOperatorId()
void setOperatorId(java.lang.String operator)
operator
- operator id.java.lang.String getFieldName()
void setFieldName(java.lang.String fieldName)
fieldName
- field name.java.lang.Object getValue()
void setValue(java.lang.Object value)
value
- to compare to.