Class IsIn<T>
java.lang.Object
org.mybatis.dynamic.sql.AbstractListValueCondition<T>
org.mybatis.dynamic.sql.where.condition.IsIn<T>
- All Implemented Interfaces:
AbstractListValueCondition.Filterable<T>,AbstractListValueCondition.Mappable<T>,RenderableCondition<T>
public class IsIn<T>
extends AbstractListValueCondition<T>
implements AbstractListValueCondition.Filterable<T>, AbstractListValueCondition.Mappable<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mybatis.dynamic.sql.AbstractListValueCondition
AbstractListValueCondition.Filterable<T>, AbstractListValueCondition.Mappable<T> -
Field Summary
Fields inherited from class org.mybatis.dynamic.sql.AbstractListValueCondition
values -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> IsIn<T> empty()If renderable and the value matches the predicate, returns this condition.<R> IsIn<R> If renderable, apply the mapping to the value and return a new condition with the new value.static <T> IsIn<T> of(Collection<T> values) static <T> IsIn<T> of(T... values) operator()booleanshouldRender(RenderingContext renderingContext) Subclasses can override this to inform the renderer if the condition should not be included in the rendered SQL.Methods inherited from class org.mybatis.dynamic.sql.AbstractListValueCondition
filterSupport, isEmpty, mapSupport, renderCondition, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mybatis.dynamic.sql.RenderableCondition
renderingSkipped, renderLeftColumn
-
Constructor Details
-
IsIn
-
-
Method Details
-
empty
-
shouldRender
Description copied from interface:RenderableConditionSubclasses can override this to inform the renderer if the condition should not be included in the rendered SQL. Typically, conditions will not render if they are empty.- Specified by:
shouldRenderin interfaceRenderableCondition<T>- Returns:
- true if the condition should render.
-
operator
- Specified by:
operatorin classAbstractListValueCondition<T>
-
filter
Description copied from interface:AbstractListValueCondition.FilterableIf renderable and the value matches the predicate, returns this condition. Else returns a condition that will not render.- Specified by:
filterin interfaceAbstractListValueCondition.Filterable<T>- 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
Description copied from interface:AbstractListValueCondition.MappableIf 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).- Specified by:
mapin interfaceAbstractListValueCondition.Mappable<T>- Type Parameters:
R- type of the new condition- 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.
-
of
-
of
-