Package org.mybatis.dynamic.sql
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.
-
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ConditionVisitor<T, R> visitor) default voidThis method will be called during rendering whenshouldRender()returns false.default booleanSubclasses can override this to inform the renderer if the condition should not be included in the rendered SQL.
-
Method Details
-
accept
-
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 whenshouldRender()returns false.
-