Package org.mybatis.dynamic.sql
Interface VisitableCondition<T>
-
- All Known Implementing Classes:
AbstractColumnComparisonCondition
,AbstractListValueCondition
,AbstractNoValueCondition
,AbstractSingleValueCondition
,AbstractSubselectCondition
,AbstractTwoValueCondition
,IsBetween
,IsBetweenWhenPresent
,IsEqualTo
,IsEqualToColumn
,IsEqualToWhenPresent
,IsEqualToWithSubselect
,IsGreaterThan
,IsGreaterThanColumn
,IsGreaterThanOrEqualTo
,IsGreaterThanOrEqualToColumn
,IsGreaterThanOrEqualToWhenPresent
,IsGreaterThanOrEqualToWithSubselect
,IsGreaterThanWhenPresent
,IsGreaterThanWithSubselect
,IsIn
,IsInCaseInsensitive
,IsInCaseInsensitiveWhenPresent
,IsInWhenPresent
,IsInWithSubselect
,IsLessThan
,IsLessThanColumn
,IsLessThanOrEqualTo
,IsLessThanOrEqualToColumn
,IsLessThanOrEqualToWhenPresent
,IsLessThanOrEqualToWithSubselect
,IsLessThanWhenPresent
,IsLessThanWithSubselect
,IsLike
,IsLikeCaseInsensitive
,IsLikeCaseInsensitiveWhenPresent
,IsLikeWhenPresent
,IsNotBetween
,IsNotBetweenWhenPresent
,IsNotEqualTo
,IsNotEqualToColumn
,IsNotEqualToWhenPresent
,IsNotEqualToWithSubselect
,IsNotIn
,IsNotInCaseInsensitive
,IsNotInCaseInsensitiveWhenPresent
,IsNotInWhenPresent
,IsNotInWithSubselect
,IsNotLike
,IsNotLikeCaseInsensitive
,IsNotLikeCaseInsensitiveWhenPresent
,IsNotLikeWhenPresent
,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
accept(ConditionVisitor<T,R> visitor)
default boolean
shouldRender()
Subclasses can override this to inform the renderer if the condition should not be included in the rendered SQL.
-
-
-
Method Detail
-
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.
-
-