Interface VisitableCondition<T>

All Known Implementing Classes:
AbstractColumnComparisonCondition, AbstractListValueCondition, AbstractNoValueCondition, AbstractSingleValueCondition, AbstractSubselectCondition, AbstractTwoValueCondition, IsBetween, IsEqualTo, IsEqualToColumn, IsEqualToWithSubselect, IsGreaterThan, IsGreaterThanColumn, IsGreaterThanOrEqualTo, IsGreaterThanOrEqualToColumn, IsGreaterThanOrEqualToWithSubselect, IsGreaterThanWithSubselect, IsIn, IsInCaseInsensitive, IsInWithSubselect, IsLessThan, IsLessThanColumn, IsLessThanOrEqualTo, IsLessThanOrEqualToColumn, IsLessThanOrEqualToWithSubselect, IsLessThanWithSubselect, IsLike, IsLikeCaseInsensitive, IsNotBetween, IsNotEqualTo, IsNotEqualToColumn, IsNotEqualToWithSubselect, IsNotIn, IsNotInCaseInsensitive, IsNotInWithSubselect, IsNotLike, IsNotLikeCaseInsensitive, IsNotNull, IsNull
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 VisitableCondition<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    <R> R
     
    default void
    This method will be called during rendering when shouldRender() returns false.
    default boolean
    Subclasses can override this to inform the renderer if the condition should not be included in the rendered SQL.
  • Method Details

    • accept

      <R> R accept(ConditionVisitor<T,R> visitor)
    • shouldRender

      default boolean shouldRender()
      Subclasses can override this to inform the renderer if the condition should not be included in the rendered SQL. For example, IsEqualWhenPresent will not render if the value is null.
      Returns:
      true if the condition should render.
    • renderingSkipped

      default void renderingSkipped()
      This method will be called during rendering when shouldRender() returns false.