Class CountMappingResolver<Q extends FlexibleRelationalPathBase<R>,R>
java.lang.Object
com.evolveum.midpoint.repo.sqale.mapping.CountMappingResolver<Q,R>
- Type Parameters:
Q- query type of entity where the mapping is nested and declaredR- row type ofCountMappingResolver
- All Implemented Interfaces:
SqaleItemRelationResolver<Q,,R, Q, R> ItemRelationResolver<Q,R, Q, R>
public class CountMappingResolver<Q extends FlexibleRelationalPathBase<R>,R>
extends Object
implements SqaleItemRelationResolver<Q,R,Q,R>
Resolver that maps the container item to the count column.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.repo.sqlbase.mapping.ItemRelationResolver
ItemRelationResolver.ResolutionResult<TQ extends FlexibleRelationalPathBase<TR>,TR> -
Constructor Summary
ConstructorsConstructorDescriptionCountMappingResolver(Function<Q, com.querydsl.core.types.dsl.NumberPath<Integer>> rootToCount) -
Method Summary
Modifier and TypeMethodDescriptioncom.querydsl.core.types.PredicatecreateExistsPredicate(SqaleQueryContext<?, Q, R> context) This creates the predicate representing the EXISTS filter.SqaleUpdateContext<?,?, ?> resolve(SqaleUpdateContext<?, Q, R> context, ItemPath itemPath) Resolves current query context to a new context (mapping is always part of context).resolve(SqlQueryContext<?, Q, R> context) Should not be called, the count must be treated before this happens.
-
Constructor Details
-
CountMappingResolver
-
-
Method Details
-
resolve
Should not be called, the count must be treated before this happens.- Specified by:
resolvein interfaceItemRelationResolver<Q extends FlexibleRelationalPathBase<R>,R, Q extends FlexibleRelationalPathBase<R>, R>
-
createExistsPredicate
This creates the predicate representing the EXISTS filter. -
resolve
Description copied from interface:SqaleItemRelationResolverResolves current query context to a new context (mapping is always part of context). The information about the resolved item is captured in the instance resolver already in a manner that is specific for various types of resolution (JOIN or nested mapping). OptionalItemPathis provided for cases when container ID is necessary. Return value `null` indicates that the modification using the resolver should be ignored by the repository.- Specified by:
resolvein interfaceSqaleItemRelationResolver<Q extends FlexibleRelationalPathBase<R>,R, Q extends FlexibleRelationalPathBase<R>, R>
-