Interface Condition

All Superinterfaces:
SqlElement
All Known Implementing Classes:
BetweenCondition, CombinedCondition, ComparisonCondition, ExistsCondition, InCondition, NotCondition, NullCondition, RawCondition
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Condition extends SqlElement
A boolean SQL expression.

Conditions make up the WHERE-, HAVING- and ON-clauses. They are immutable and thus can be shared between queries and threads.

Author:
harald
  • Method Summary

    Modifier and Type
    Method
    Description
    default Condition
    and(Condition condition)
    Combines this condition with another one by a logical AND.
    default Condition
    not()
    Negates this condition.
    default Condition
    or(Condition condition)
    Combines this condition with another one by a logical OR.

    Methods inherited from interface SqlElement

    render
  • Method Details

    • and

      default Condition and(Condition condition)
      Combines this condition with another one by a logical AND.
      Parameters:
      condition - the other condition
      Returns:
      the combined condition
    • or

      default Condition or(Condition condition)
      Combines this condition with another one by a logical OR.
      Parameters:
      condition - the other condition
      Returns:
      the combined condition
    • not

      default Condition not()
      Negates this condition.
      Returns:
      the negated condition