Class IsLikeCaseInsensitive
- java.lang.Object
-
- org.mybatis.dynamic.sql.AbstractSingleValueCondition<String>
-
- org.mybatis.dynamic.sql.where.condition.IsLikeCaseInsensitive
-
- All Implemented Interfaces:
VisitableCondition<String>
public class IsLikeCaseInsensitive extends AbstractSingleValueCondition<String>
-
-
Field Summary
-
Fields inherited from class org.mybatis.dynamic.sql.AbstractSingleValueCondition
value
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IsLikeCaseInsensitive(String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IsLikeCaseInsensitive
empty()
IsLikeCaseInsensitive
filter(Predicate<? super String> predicate)
If renderable and the value matches the predicate, returns this condition.IsLikeCaseInsensitive
map(UnaryOperator<String> mapper)
If renderable, apply the mapping to the value and return a new condition with the new value.static IsLikeCaseInsensitive
of(String value)
String
renderCondition(String columnName, String placeholder)
String
value()
-
Methods inherited from class org.mybatis.dynamic.sql.AbstractSingleValueCondition
accept, filterSupport, mapSupport
-
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
-
-
-
-
Constructor Detail
-
IsLikeCaseInsensitive
protected IsLikeCaseInsensitive(String value)
-
-
Method Detail
-
empty
public static IsLikeCaseInsensitive empty()
-
renderCondition
public String renderCondition(String columnName, String placeholder)
- Specified by:
renderCondition
in classAbstractSingleValueCondition<String>
-
value
public String value()
- Overrides:
value
in classAbstractSingleValueCondition<String>
-
of
public static IsLikeCaseInsensitive of(String value)
-
filter
public IsLikeCaseInsensitive filter(Predicate<? super String> predicate)
Description copied from class:AbstractSingleValueCondition
If renderable and the value matches the predicate, returns this condition. Else returns a condition that will not render.- Specified by:
filter
in classAbstractSingleValueCondition<String>
- Parameters:
predicate
- predicate applied to the value, if renderable- Returns:
- this condition if renderable and the value matches the predicate, otherwise a condition that will not render.
-
map
public IsLikeCaseInsensitive map(UnaryOperator<String> mapper)
If renderable, apply the mapping to the value and return a new condition with the new value. Else return a condition that will not render (this).- Parameters:
mapper
- a mapping function to apply to the value, if renderable- Returns:
- a new condition with the result of applying the mapper to the value of this condition, if renderable, otherwise a condition that will not render.
-
-