Class ItemFilterProcessor<O extends ObjectFilter>
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.pure.mapping.ItemFilterProcessor<O>
-
- All Implemented Interfaces:
FilterProcessor<O>
- Direct Known Subclasses:
AuditCustomColumnItemFilterProcessor
,DetailTableItemFilterProcessor
,SinglePathItemFilterProcessor
public abstract class ItemFilterProcessor<O extends ObjectFilter> extends Object implements FilterProcessor<O>
Type ofFilterProcessor
for a single Prism item (not necessarily one SQL column). These are executed as "leafs" of filter processing tree returning terminal predicates. These are used inQueryModelMapping
objects. This superclass contains support methods for determining operator from filter, getting single value and other typical operations needed by item filter processors.
-
-
Field Summary
Fields Modifier and Type Field Description protected SqlPathContext<?,?,?>
context
-
Constructor Summary
Constructors Modifier Constructor Description protected
ItemFilterProcessor(SqlPathContext<?,?,?> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull com.querydsl.core.types.Predicate
createBinaryCondition(ValueFilter<?,?> filter, com.querydsl.core.types.Path<?> path, ValueFilterValues<?> values)
protected <T> T
getSingleValue(PropertyValueFilter<T> filter)
Returns the single "real" value from the property filter (or null).protected boolean
isIgnoreCaseFilter(ValueFilter<?,?> filter)
protected com.querydsl.core.types.Ops
operation(ValueFilter<?,?> filter)
protected com.querydsl.core.types.Predicate
singleValuePredicate(com.querydsl.core.types.Path<?> path, com.querydsl.core.types.Ops operator, Object value)
-
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.sql.pure.FilterProcessor
process
-
-
-
-
Field Detail
-
context
protected final SqlPathContext<?,?,?> context
-
-
Constructor Detail
-
ItemFilterProcessor
protected ItemFilterProcessor(SqlPathContext<?,?,?> context)
-
-
Method Detail
-
getSingleValue
@Nullable protected <T> T getSingleValue(PropertyValueFilter<T> filter)
Returns the single "real" value from the property filter (or null).
-
operation
protected com.querydsl.core.types.Ops operation(ValueFilter<?,?> filter) throws QueryException
- Throws:
QueryException
-
isIgnoreCaseFilter
protected boolean isIgnoreCaseFilter(ValueFilter<?,?> filter)
-
createBinaryCondition
@NotNull protected @NotNull com.querydsl.core.types.Predicate createBinaryCondition(ValueFilter<?,?> filter, com.querydsl.core.types.Path<?> path, ValueFilterValues<?> values) throws QueryException
- Throws:
QueryException
-
singleValuePredicate
protected com.querydsl.core.types.Predicate singleValuePredicate(com.querydsl.core.types.Path<?> path, com.querydsl.core.types.Ops operator, Object value)
-
-