Package org.mybatis.dynamic.sql
Class AbstractNoValueCondition<T>
- java.lang.Object
-
- org.mybatis.dynamic.sql.AbstractNoValueCondition<T>
-
- All Implemented Interfaces:
VisitableCondition<T>
public abstract class AbstractNoValueCondition<T> extends java.lang.Object implements VisitableCondition<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractNoValueCondition()
protected
AbstractNoValueCondition(java.util.function.BooleanSupplier booleanSupplier)
-
Method Summary
Modifier and Type Method Description <R> R
accept(ConditionVisitor<T,R> visitor)
abstract java.lang.String
renderCondition(java.lang.String columnName)
boolean
shouldRender()
Subclasses can override this to inform the renderer if the condition should not be included in the rendered SQL.
-
-
-
Method Detail
-
shouldRender
public boolean shouldRender()
Description copied from interface:VisitableCondition
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.- Specified by:
shouldRender
in interfaceVisitableCondition<T>
- Returns:
- true if the condition should render.
-
accept
public <R> R accept(ConditionVisitor<T,R> visitor)
- Specified by:
accept
in interfaceVisitableCondition<T>
-
renderCondition
public abstract java.lang.String renderCondition(java.lang.String columnName)
-
-