Class TableRelationResolver<Q extends FlexibleRelationalPathBase<?>,DQ extends FlexibleRelationalPathBase<DR>,DR>
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqlbase.mapping.item.TableRelationResolver<Q,DQ,DR>
-
- Type Parameters:
Q
- type of source entity pathDQ
- type of target entity pathDR
- row type related to the target entity pathTableRelationResolver
- All Implemented Interfaces:
ItemRelationResolver
public class TableRelationResolver<Q extends FlexibleRelationalPathBase<?>,DQ extends FlexibleRelationalPathBase<DR>,DR> extends Object implements ItemRelationResolver
Resolver that knows how to addJOIN
for the specified target query type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.repo.sqlbase.mapping.item.ItemRelationResolver
ItemRelationResolver.ResolutionResult
-
-
Constructor Summary
Constructors Constructor Description TableRelationResolver(@NotNull Class<DQ> targetQueryType, @NotNull BiFunction<Q,DQ,com.querydsl.core.types.Predicate> joinPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemRelationResolver.ResolutionResult
resolve(SqlQueryContext<?,?,?> context)
Creates the JOIN using provided query context.
-
-
-
Constructor Detail
-
TableRelationResolver
public TableRelationResolver(@NotNull @NotNull Class<DQ> targetQueryType, @NotNull @NotNull BiFunction<Q,DQ,com.querydsl.core.types.Predicate> joinPredicate)
-
-
Method Detail
-
resolve
public ItemRelationResolver.ResolutionResult resolve(SqlQueryContext<?,?,?> context)
Creates the JOIN using provided query context. This does not use the mapping parameter as it is useless for JOIN creation.- Specified by:
resolve
in interfaceItemRelationResolver
- Parameters:
context
- query context used for JOIN creation- Returns:
- result with context for JOINed entity path and its mapping
-
-