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
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ParameterReturns the parameter of this compare ornull.getValue()Returns the valueattributeof this compare will be compared with.voidsetParameter(Parameter param) Sets the parameter of this compare.voidSets the value theattributeof this compare will be compared with.Methods inherited from class de.espirit.or.query.AbstractConstraint
getAttributeName, getType, isEmptyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.espirit.or.query.AttributeConstraint
getAttributeNameMethods 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 nullthen 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
nullif 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 valueattributeof this compare will be compared with.- Since:
- 4.0.17
-
setValue
Sets the value theattributeof this compare will be compared with.- Parameters:
value- the new value- Since:
- 4.0.17
-