Class EmbeddedReferenceResolver<Q extends FlexibleRelationalPathBase<R>,R>
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqale.mapping.EmbeddedReferenceResolver<Q,R>
-
- Type Parameters:
Q
- query type of entity where the reference mapping is declaredR
- row type ofEmbeddedReferenceResolver
- All Implemented Interfaces:
ItemRelationResolver<Q,R,Q,R>
public class EmbeddedReferenceResolver<Q extends FlexibleRelationalPathBase<R>,R> extends Object implements ItemRelationResolver<Q,R,Q,R>
Resolver supporting dereferencing of embedded references. Internally, it creates its own nested mapping with relation resolver only for @.
-
-
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
Constructors Constructor Description EmbeddedReferenceResolver(@NotNull Class<Q> queryType, @NotNull Function<Q,UuidPath> rootToOidPath, @NotNull Supplier<QueryTableMapping<TS,TQ,TR>> targetMappingSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemRelationResolver.ResolutionResult<Q,R>
resolve(SqlQueryContext<?,Q,R> context)
Resolves a query context toItemRelationResolver.ResolutionResult
with new context and mapping.
-
-
-
Method Detail
-
resolve
public ItemRelationResolver.ResolutionResult<Q,R> resolve(SqlQueryContext<?,Q,R> context)
Description copied from interface:ItemRelationResolver
Resolves a query context toItemRelationResolver.ResolutionResult
with new context and mapping. The information about the resolved item is captured in the instance resolver already in a manner that is specific for various types of resolution (subquery or nested mapping).- Specified by:
resolve
in interfaceItemRelationResolver<Q extends FlexibleRelationalPathBase<R>,R,Q extends FlexibleRelationalPathBase<R>,R>
-
-