Class OtherFieldCriterion
java.lang.Object
com.isomorphic.criteria.criterion.OtherFieldCriterion
- All Implemented Interfaces:
Criterion
Criterion for checking field value against other field value.
-
Constructor Summary
ConstructorsConstructorDescriptionOtherFieldCriterion
(String fieldName, OperatorBase operatorId, String otherFieldName) Constructor by parameters:OtherFieldCriterion
(String fieldName, String otherFieldName) CallsOtherFieldCriterion(String, OperatorBase, String)
constructor, passingDefaultOperators.EqualsField
as operatorId.OtherFieldCriterion
(String fieldName, String operatorId, String otherFieldName) Constructor by parameters: -
Method Summary
Modifier and TypeMethodDescriptionGets other field name.void
setOtherFieldName
(String otherFieldName) Sets other field name.
-
Constructor Details
-
OtherFieldCriterion
Constructor by parameters:- Parameters:
fieldName
- - name of field to checkoperatorId
- - operator that determines checking logicotherFieldName
- - name of field that will be used for checking
-
OtherFieldCriterion
Constructor by parameters:- Parameters:
fieldName
- - name of field to checkoperatorId
- - operator that determines checking logic. This is likely to be a member of theDefaultOperators
class, such as IContainsField or GreaterThanField.otherFieldName
- - name of field that will be used for checking
-
OtherFieldCriterion
CallsOtherFieldCriterion(String, OperatorBase, String)
constructor, passingDefaultOperators.EqualsField
as operatorId.- Parameters:
fieldName
- - name of field to checkotherFieldName
- - name of field that will be used for checking
-
-
Method Details
-
setOtherFieldName
Sets other field name.- Parameters:
otherFieldName
- other field name.
-
getOtherFieldName
Gets other field name.- Returns:
- other field name.
-