Class IsInCaseInsensitive
- java.lang.Object
-
- org.mybatis.dynamic.sql.AbstractListValueCondition<java.lang.String>
-
- org.mybatis.dynamic.sql.where.condition.IsInCaseInsensitive
-
- All Implemented Interfaces:
VisitableCondition<java.lang.String>
- Direct Known Subclasses:
IsInCaseInsensitiveWhenPresent
public class IsInCaseInsensitive extends AbstractListValueCondition<java.lang.String>
-
-
Field Summary
-
Fields inherited from class org.mybatis.dynamic.sql.AbstractListValueCondition
values, valueStreamTransformer
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IsInCaseInsensitive(java.util.Collection<java.lang.String> values)
protected
IsInCaseInsensitive(java.util.Collection<java.lang.String> values, java.util.function.UnaryOperator<java.util.stream.Stream<java.lang.String>> valueStreamTransformer)
-
Method Summary
Modifier and Type Method Description static IsInCaseInsensitive
of(java.util.Collection<java.lang.String> values)
java.lang.String
renderCondition(java.lang.String columnName, java.util.stream.Stream<java.lang.String> placeholders)
IsInCaseInsensitive
then(java.util.function.UnaryOperator<java.util.stream.Stream<java.lang.String>> valueStreamTransformer)
This method allows you to modify the condition's values before they are placed into the parameter map.-
Methods inherited from class org.mybatis.dynamic.sql.AbstractListValueCondition
accept, mapValues
-
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
shouldRender
-
-
-
-
Constructor Detail
-
IsInCaseInsensitive
protected IsInCaseInsensitive(java.util.Collection<java.lang.String> values)
-
IsInCaseInsensitive
protected IsInCaseInsensitive(java.util.Collection<java.lang.String> values, java.util.function.UnaryOperator<java.util.stream.Stream<java.lang.String>> valueStreamTransformer)
-
-
Method Detail
-
renderCondition
public java.lang.String renderCondition(java.lang.String columnName, java.util.stream.Stream<java.lang.String> placeholders)
- Specified by:
renderCondition
in classAbstractListValueCondition<java.lang.String>
-
then
public IsInCaseInsensitive then(java.util.function.UnaryOperator<java.util.stream.Stream<java.lang.String>> valueStreamTransformer)
This method allows you to modify the condition's values before they are placed into the parameter map. For example, you could filter nulls, or trim strings, etc. This process will run before final rendering of SQL. If you filter values out of the stream, then final condition will not reference those values. If you filter all values out of the stream, then the condition will not render.- Parameters:
valueStreamTransformer
- a UnaryOperator that will transform the value stream before the values are placed in the parameter map- Returns:
- new condition with the specified transformer
-
of
public static IsInCaseInsensitive of(java.util.Collection<java.lang.String> values)
-
-