Class IsNotNull<T>
- java.lang.Object
-
- org.mybatis.dynamic.sql.AbstractNoValueCondition<T>
-
- org.mybatis.dynamic.sql.where.condition.IsNotNull<T>
-
- All Implemented Interfaces:
VisitableCondition<T>
public class IsNotNull<T> extends AbstractNoValueCondition<T>
-
-
Constructor Summary
Constructors Constructor Description IsNotNull()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> IsNotNull<T>
empty()
<S> IsNotNull<S>
filter(BooleanSupplier booleanSupplier)
If renderable and the supplier returns true, returns this condition.String
renderCondition(String columnName)
-
Methods inherited from class org.mybatis.dynamic.sql.AbstractNoValueCondition
accept, filterSupport
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mybatis.dynamic.sql.VisitableCondition
renderingSkipped, shouldRender
-
-
-
-
Method Detail
-
empty
public static <T> IsNotNull<T> empty()
-
renderCondition
public String renderCondition(String columnName)
- Specified by:
renderCondition
in classAbstractNoValueCondition<T>
-
filter
public <S> IsNotNull<S> filter(BooleanSupplier booleanSupplier)
If renderable and the supplier returns true, returns this condition. Else returns a condition that will not render.- Type Parameters:
S
- condition type - not used except for compilation compliance- Parameters:
booleanSupplier
- function that specifies whether the condition should render- Returns:
- this condition if renderable and the supplier returns true, otherwise a condition that will not render.
-
-