Interface Constraint

All Superinterfaces:
Cloneable, Serializable
All Known Subinterfaces:
AttributeConstraint
All Known Implementing Classes:
AbstractConstraint, And, Compare, ComposedConstraint, Equal, GreaterThan, GreaterThanEqual, In, IsNotNull, IsNull, LessThan, LessThanEqual, Like, NotEqual, Or

public interface Constraint extends Cloneable, Serializable
Interface for all filters which are used to restrict the result of a Select.
Since:
4.0.17
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Enum specifiying the type of the constraint.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the type of this constraint.
    boolean
    Check if this is an empty constraint.
  • Method Details

    • getType

      Constraint.Type getType()
      Returns the type of this constraint.
      Returns:
      the type of this constraint.
      Since:
      5.0.100
    • isEmpty

      boolean isEmpty()
      Check if this is an empty constraint. Empty constraints could be omitted without changing the query result.
      Returns:
      true if the constraint is empty, i.e. removing the constraint would not change the query result.
      Since:
      5.0.102