Package de.espirit.or.query
Class Compare
java.lang.Object
de.espirit.or.query.AbstractConstraint
de.espirit.or.query.Compare
- All Implemented Interfaces:
AttributeConstraint
,Constraint
,Serializable
,Cloneable
- Direct Known Subclasses:
Equal
,GreaterThan
,GreaterThanEqual
,In
,LessThan
,LessThanEqual
,Like
,NotEqual
The base class of all compare constraints.
- Since:
- 4.0.17
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.or.query.Constraint
Constraint.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Parameter
Returns the parameter of this compare ornull
.getValue()
Returns the valueattribute
of this compare will be compared with.void
setParameter
(Parameter param) Sets the parameter of this compare.void
Sets the value theattribute
of this compare will be compared with.Methods inherited from class de.espirit.or.query.AbstractConstraint
getAttributeName, getType, isEmpty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.espirit.or.query.AttributeConstraint
getAttributeName
Methods inherited from interface de.espirit.or.query.Constraint
getType, isEmpty
-
Constructor Details
-
Compare
public Compare()
-
-
Method Details
-
getParameter
Returns the parameter of this compare ornull
. If parameter isnot null
then its value is used by the comparison and not the one defined bygetValue()
. The parameter's value is stored in the select viasetParameter(String, Object
.- Returns:
- the parameter of this compare or
null
if not set. - Since:
- 4.0.17
- See Also:
-
setParameter
Sets the parameter of this compare. The parameter's value is stored in the select viasetParameter(String, Object
.- Parameters:
param
- the new parameter- Since:
- 4.0.17
-
getValue
Returns the valueattribute
of this compare will be compared with.- Since:
- 4.0.17
-
setValue
Sets the value theattribute
of this compare will be compared with.- Parameters:
value
- the new value- Since:
- 4.0.17
-