Class Compare

All Implemented Interfaces:
AttributeConstraint, Constraint, Serializable, Cloneable
Direct Known Subclasses:
Equal, GreaterThan, GreaterThanEqual, In, LessThan, LessThanEqual, Like, NotEqual

public abstract class Compare extends AbstractConstraint implements AttributeConstraint
The base class of all compare constraints.
Since:
4.0.17
See Also:
  • Constructor Details

    • Compare

      public Compare()
  • Method Details

    • getParameter

      @Nullable public @Nullable Parameter getParameter()
      Returns the parameter of this compare or null. If parameter is not null then its value is used by the comparison and not the onedefined by getValue(). The parameter's value is stored in the select via setParameter(String, Object.
      Returns:
      the parameter of this compare or null if not set.
      Since:
      4.0.17
      See Also:
    • setParameter

      public void setParameter(Parameter param)
      Sets the parameter of this compare. The parameter's value is stored in the select via setParameter(String, Object.
      Parameters:
      param - the new parameter
      Since:
      4.0.17
    • getValue

      public Object getValue()
      Returns the value attribute of this compare will becompared with.
      Since:
      4.0.17
    • setValue

      public void setValue(Object value)
      Sets the value the attribute of this compare will becompared with.
      Parameters:
      value - the new value
      Since:
      4.0.17