Class ArrayPathItemFilterProcessor<T,E>
java.lang.Object
com.evolveum.midpoint.repo.sqlbase.filtering.item.ItemValueFilterProcessor<PropertyValueFilter<T>>
com.evolveum.midpoint.repo.sqlbase.filtering.item.SinglePathItemFilterProcessor<T,com.querydsl.core.types.dsl.ArrayPath<E[],E>>
com.evolveum.midpoint.repo.sqale.filtering.ArrayPathItemFilterProcessor<T,E>
- Type Parameters:
T
- type of value in schemaE
- type of element in DB (can be the same as `T`)
- All Implemented Interfaces:
FilterProcessor<PropertyValueFilter<T>>
,RightHandProcessor
public class ArrayPathItemFilterProcessor<T,E>
extends SinglePathItemFilterProcessor<T,com.querydsl.core.types.dsl.ArrayPath<E[],E>>
Filter processor for multi-value property represented by single array column.
These paths support only value equality (of any value), which is "contains" in DB terminology.
Our filter "contains" (meaning substring) is *not* supported.
-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.filtering.item.SinglePathItemFilterProcessor
path
Fields inherited from class com.evolveum.midpoint.repo.sqlbase.filtering.item.ItemValueFilterProcessor
context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.querydsl.core.types.Predicate
process
(PropertyValueFilter<T> filter) Methods inherited from class com.evolveum.midpoint.repo.sqlbase.filtering.item.SinglePathItemFilterProcessor
rightHand
Methods inherited from class com.evolveum.midpoint.repo.sqlbase.filtering.item.ItemValueFilterProcessor
createBinaryCondition, createUnsupportedMatchingRuleException, createUnsupportedMatchingRuleException, fuzzyStringPredicate, getSingleValue, isIgnoreCaseFilter, operation, predicateWithNotTreated, singleValuePredicate, singleValuePredicateWithNotTreated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.repo.sqlbase.filtering.FilterProcessor
process
-
Constructor Details
-
ArrayPathItemFilterProcessor
public ArrayPathItemFilterProcessor(SqlQueryContext<?, Q, R> context, Function<Q, com.querydsl.core.types.dsl.ArrayPath<E[], E>> rootToPath, String dbType, Class<E> elementType, @Nullable @Nullable Function<T, E> conversionFunction) Creates filter processor for array column.- Parameters:
dbType
- name of the type for element in DB (without []) for the cast part of the conditionelementType
- class ofArrayPathItemFilterProcessor
necessary for array creationconversionFunction
- optional conversion function, can be null if no conversion is necessary
-
-
Method Details
-
process
public com.querydsl.core.types.Predicate process(PropertyValueFilter<T> filter) throws RepositoryException - Throws:
RepositoryException
-