Interface SQLComparisonStep<NEXT>

Type Parameters:
NEXT - the stage available after the comparison is completed

public interface SQLComparisonStep<NEXT>
The right-hand comparison stage. Completing an operator returns the enclosing clause stage. Equality and ordering comparisons retain SQL NULL semantics; use isNull() or isNotNull() to test for NULL explicitly.
Since:
4.15
Author:
Eike Stepper
No Implement
This interface is not intended to be implemented by clients.
No Extend
This interface is not intended to be extended by clients.
  • Method Summary

    Modifier and Type
    Method
    Description
    Adds a BETWEEN comparison with the supplied lower and upper expressions.
    Adds an equality comparison between the left expression supplied to this stage and the right expression.
    Adds a greater-than-or-equal comparison between the left expression supplied to this stage and the right expression.
    Adds a greater-than comparison between the left expression supplied to this stage and the right expression.
    in()
    Starts an incomplete IN value list in this statement builder.
    in(Iterable<? extends SQLExpression> values)
    Adds an IN comparison by consuming the iterable once in iteration order.
    in(SQLExpression first, SQLExpression... others)
    Adds an IN comparison using the supplied ordered expressions.
    Adds an IN comparison using the result of a complete nested SELECT.
    Adds an IS NOT NULL test for the left expression supplied to this stage.
    Adds an IS NULL test for the left expression supplied to this stage.
    Adds a less-than-or-equal comparison between the left expression supplied to this stage and the right expression.
    Adds a LIKE comparison.
    Adds a less-than comparison between the left expression supplied to this stage and the right expression.
    Adds an inequality comparison between the left expression supplied to this stage and the right expression.
  • Method Details

    • eq

      NEXT eq(SQLExpression right)
      Adds an equality comparison between the left expression supplied to this stage and the right expression.
      Parameters:
      right - the right expression of a comparison
      Returns:
      the next valid fluent stage
    • ne

      NEXT ne(SQLExpression right)
      Adds an inequality comparison between the left expression supplied to this stage and the right expression.
      Parameters:
      right - the right expression of a comparison
      Returns:
      the next valid fluent stage
    • lt

      NEXT lt(SQLExpression right)
      Adds a less-than comparison between the left expression supplied to this stage and the right expression.
      Parameters:
      right - the right expression of a comparison
      Returns:
      the next valid fluent stage
    • le

      NEXT le(SQLExpression right)
      Adds a less-than-or-equal comparison between the left expression supplied to this stage and the right expression.
      Parameters:
      right - the right expression of a comparison
      Returns:
      the next valid fluent stage
    • gt

      NEXT gt(SQLExpression right)
      Adds a greater-than comparison between the left expression supplied to this stage and the right expression.
      Parameters:
      right - the right expression of a comparison
      Returns:
      the next valid fluent stage
    • ge

      NEXT ge(SQLExpression right)
      Adds a greater-than-or-equal comparison between the left expression supplied to this stage and the right expression.
      Parameters:
      right - the right expression of a comparison
      Returns:
      the next valid fluent stage
    • like

      NEXT like(SQLExpression right)
      Adds a LIKE comparison. Pattern and escape semantics are determined by SQL and the target dialect.
      Parameters:
      right - the right expression of a comparison
      Returns:
      the next valid fluent stage
    • between

      NEXT between(SQLExpression lower, SQLExpression upper)
      Adds a BETWEEN comparison with the supplied lower and upper expressions.
      Parameters:
      lower - the lower bound expression
      upper - the upper bound expression
      Returns:
      the next valid fluent stage
    • in

      NEXT in(SQLSubSelect query)
      Adds an IN comparison using the result of a complete nested SELECT.
      Parameters:
      query - the complete nested SELECT definition
      Returns:
      the next valid fluent stage
    • in

      NEXT in(SQLExpression first, SQLExpression... others)
      Adds an IN comparison using the supplied ordered expressions.
      Parameters:
      first - the required first value expression
      others - additional value expressions
      Returns:
      the next valid fluent stage
    • in

      NEXT in(Iterable<? extends SQLExpression> values)
      Adds an IN comparison by consuming the iterable once in iteration order.
      Parameters:
      values - the non-empty value expressions
      Returns:
      the next valid fluent stage
    • in

      Starts an incomplete IN value list in this statement builder.
      Returns:
      the staged value-list builder
    • isNull

      NEXT isNull()
      Adds an IS NULL test for the left expression supplied to this stage.
      Returns:
      the next valid fluent stage
    • isNotNull

      NEXT isNotNull()
      Adds an IS NOT NULL test for the left expression supplied to this stage.
      Returns:
      the next valid fluent stage