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 protectedAbstractNoValueCondition()protectedAbstractNoValueCondition(java.util.function.BooleanSupplier booleanSupplier)
-
Method Summary
Modifier and Type Method Description <R> Raccept(ConditionVisitor<T,R> visitor)abstract java.lang.StringrenderCondition(java.lang.String columnName)booleanshouldRender()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:VisitableConditionSubclasses 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:
shouldRenderin interfaceVisitableCondition<T>- Returns:
- true if the condition should render.
-
accept
public <R> R accept(ConditionVisitor<T,R> visitor)
- Specified by:
acceptin interfaceVisitableCondition<T>
-
renderCondition
public abstract java.lang.String renderCondition(java.lang.String columnName)
-
-