Package com.isomorphic.criteria
Interface Criterion
- All Known Implementing Classes:
AndCriterion
,CustomCriterion
,DateRangeCriterion
,DoubleRangeCriterion
,FloatRangeCriterion
,IntegerRangeCriterion
,IsBlankCriterion
,IsNullCriterion
,LogicalCriterion
,LongRangeCriterion
,NotBlankCriterion
,NotCriterion
,NotNullCriterion
,OrCriterion
,OtherFieldCriterion
,RangeCriterion
,RelativeDateRangeCriterion
,SetCriterion
,SimpleCriterion
public interface Criterion
An object representing a criterion to apply to a record.
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.
-
Method Summary
Modifier and TypeMethodDescriptionGets field name to compare against.Gets operator id used in search criteria.getValue()
Gets value used to compare to.void
setFieldName
(String fieldName) Sets field name to compare against.void
setOperatorId
(String operator) Sets operator id to use in search criteria.void
Sets value used to compare to.
-
Method Details
-
getOperatorId
String getOperatorId()Gets operator id used in search criteria.- Returns:
- operator id.
-
setOperatorId
Sets operator id to use in search criteria.- Parameters:
operator
- operator id.
-
getFieldName
String getFieldName()Gets field name to compare against.- Returns:
- field name.
-
setFieldName
Sets field name to compare against.- Parameters:
fieldName
- field name.
-
getValue
Object getValue()Gets value used to compare to.- Returns:
- value to compare to.
-
setValue
Sets value used to compare to.- Parameters:
value
- to compare to.
-