Package uk.ac.gda.mx.api.base.selector
Interface Constraint
- All Superinterfaces:
SelectorUnit
- All Known Implementing Classes:
_Constraint
Element used by filter to restrict qualifying Records
-
Method Summary
Modifier and TypeMethodDescriptioncopy()getBound()longgetId()booleanbooleansetId(long id) setIsReference(boolean isReference) setRelation(Operator op) setSubject(Field subject) Methods inherited from interface uk.ac.gda.mx.api.base.selector.SelectorUnit
isEnable, setEnable
-
Method Details
-
copy
Constraint copy()- Specified by:
copyin interfaceSelectorUnit
-
getId
long getId() -
getPrefix
Prefix getPrefix() -
getSubject
Field getSubject()- Specified by:
getSubjectin interfaceSelectorUnit- Returns:
- the Field of the Record to qualify
-
getRelation
Operator getRelation()- Returns:
- the Operator used to qualify the Subject
-
getBound
Field getBound()- Returns:
- the Field value or reference to qualify the Subject against
-
isReference
boolean isReference() -
pass
-
setId
-
setIsReference
-
setPrefix
-
setSubject
- Specified by:
setSubjectin interfaceSelectorUnit- Parameters:
subject- the Field of the Record to qualify- Returns:
- the Constraint with Subject set
-
setRelation
- Parameters:
op- the Operator used to qualify the subject- Returns:
- the Constraint with Operator set
-
setBound
- Parameters:
bound- the Field value or reference to qualify the Subject agains- Returns:
- the Constraint with Bound set
-