Uses of Class
com.evolveum.midpoint.repo.sqlbase.SqlQueryContext
-
-
Uses of SqlQueryContext in com.evolveum.midpoint.repo.sqlbase
Methods in com.evolveum.midpoint.repo.sqlbase that return SqlQueryContext Modifier and Type Method Description <TS,TQ extends FlexibleRelationalPathBase<TR>,TR>
SqlQueryContext<TS,TQ,TR>SqlQueryContext. leftJoin(@NotNull QueryTableMapping<TS,TQ,TR> targetMapping, @NotNull BiFunction<Q,TQ,com.querydsl.core.types.Predicate> joinOnPredicateFunction)
Adds new LEFT JOIN to the query and returnsSqlQueryContext
for this join path.protected abstract <TS,TQ extends FlexibleRelationalPathBase<TR>,TR>
SqlQueryContext<TS,TQ,TR>SqlQueryContext. newSubcontext(TQ newPath, QueryTableMapping<TS,TQ,TR> newMapping)
Contract to implement to obtain derived (e.g.protected abstract <TS,TQ extends FlexibleRelationalPathBase<TR>,TR>
SqlQueryContext<TS,TQ,TR>SqlQueryContext. newSubcontext(TQ newPath, QueryTableMapping<TS,TQ,TR> newMapping, com.querydsl.sql.SQLQuery<?> query)
Contract to implement to obtain derived (e.g.SqlQueryContext<?,?,?>
SqlQueryContext. parentContext()
<TS,TQ extends FlexibleRelationalPathBase<TR>,TR>
SqlQueryContext<TS,TQ,TR>SqlQueryContext. subquery(@NotNull QueryTableMapping<TS,TQ,TR> targetMapping)
Creates new subquery and returnsSqlQueryContext
for it, typically for (NOT) EXISTS.<TS,TQ extends FlexibleRelationalPathBase<TR>,TR>
SqlQueryContext<TS,TQ,TR>SqlQueryContext. subquery(@NotNull Class<TQ> subqueryType)
Creates new subquery, seesubquery(QueryTableMapping)
for more.Methods in com.evolveum.midpoint.repo.sqlbase with parameters of type SqlQueryContext Modifier and Type Method Description <S,Q extends FlexibleRelationalPathBase<R>,R>
intSqlQueryExecutor. count(@NotNull SqlQueryContext<S,Q,R> context, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options)
<S,Q extends FlexibleRelationalPathBase<R>,R>
SearchResultList<S>SqlQueryExecutor. list(@NotNull SqlQueryContext<S,Q,R> context, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options)
Constructors in com.evolveum.midpoint.repo.sqlbase with parameters of type SqlQueryContext Constructor Description SqlQueryContext(Q entityPath, QueryTableMapping<S,Q,R> mapping, SqlQueryContext<?,?,?> parentContext, com.querydsl.sql.SQLQuery<?> sqlQuery)
Constructor for derived context or sub-context, e.g. -
Uses of SqlQueryContext in com.evolveum.midpoint.repo.sqlbase.filtering
Constructors in com.evolveum.midpoint.repo.sqlbase.filtering with parameters of type SqlQueryContext Constructor Description NaryLogicalFilterProcessor(SqlQueryContext<?,?,?> context)
NotFilterProcessor(SqlQueryContext<?,?,?> context)
ValueFilterProcessor(SqlQueryContext<?,Q,R> context)
-
Uses of SqlQueryContext in com.evolveum.midpoint.repo.sqlbase.filtering.item
Fields in com.evolveum.midpoint.repo.sqlbase.filtering.item declared as SqlQueryContext Modifier and Type Field Description protected SqlQueryContext<?,?,?>
ItemValueFilterProcessor. context
Constructors in com.evolveum.midpoint.repo.sqlbase.filtering.item with parameters of type SqlQueryContext Constructor Description DetailTableItemFilterProcessor(SqlQueryContext<S,Q,?> context, Class<DQ> detailQueryType, BiFunction<Q,DQ,com.querydsl.core.types.Predicate> joinOnPredicate, ItemSqlMapper<DQ,DR> nestedItemMapper)
EnumItemFilterProcessor(SqlQueryContext<S,Q,R> context, Function<Q,com.querydsl.core.types.dsl.EnumPath<E>> rootToQueryItem)
ItemValueFilterProcessor(SqlQueryContext<?,?,?> context)
PolyStringItemFilterProcessor(SqlQueryContext<?,Q,R> context, Function<Q,com.querydsl.core.types.dsl.StringPath> origMapping, Function<Q,com.querydsl.core.types.dsl.StringPath> normMapping)
SimpleItemFilterProcessor(SqlQueryContext<?,Q,R> context, Function<Q,P> rootToQueryItem)
SinglePathItemFilterProcessor(SqlQueryContext<?,Q,R> context, Function<Q,P> rootToQueryItem)
TimestampItemFilterProcessor(SqlQueryContext<?,Q,R> context, Function<Q,com.querydsl.core.types.dsl.DateTimePath<T>> rootToQueryItem)
-
Uses of SqlQueryContext in com.evolveum.midpoint.repo.sqlbase.mapping
Fields in com.evolveum.midpoint.repo.sqlbase.mapping declared as SqlQueryContext Modifier and Type Field Description SqlQueryContext<?,TQ,TR>
ItemRelationResolver.ResolutionResult. context
Methods in com.evolveum.midpoint.repo.sqlbase.mapping with parameters of type SqlQueryContext Modifier and Type Method Description <T extends ValueFilter<?,?>>
@Nullable ItemValueFilterProcessor<T>DefaultItemSqlMapper. createFilterProcessor(SqlQueryContext<?,?,?> sqlQueryContext)
CreatesItemValueFilterProcessor
based on this mapping.<T extends ValueFilter<?,?>>
@Nullable ItemValueFilterProcessor<T>ItemSqlMapper. createFilterProcessor(SqlQueryContext<?,?,?> sqlQueryContext)
CreatesItemValueFilterProcessor
based on this mapping.@Nullable RightHandProcessor
DefaultItemSqlMapper. createRightHandProcessor(SqlQueryContext<?,?,?> sqlQueryContext)
@Nullable RightHandProcessor
ItemSqlMapper. createRightHandProcessor(SqlQueryContext<?,?,?> sqlQueryContext)
ResultListRowTransformer<S,Q,R>
QueryTableMapping. createRowTransformer(SqlQueryContext<S,Q,R> sqlQueryContext, JdbcSession jdbcSession)
Similarly, transformation to midPoint objects allows for state usingResultListRowTransformer
instead of is done in one-by-one manner, it is not done by the mapping (which is otherwise stateless), but the mapping creates transformer , there is also room for a stateful objectItemRelationResolver.ResolutionResult<TQ,TR>
ItemRelationResolver. resolve(SqlQueryContext<?,Q,R> context)
Resolves a query context toItemRelationResolver.ResolutionResult
with new context and mapping.ItemRelationResolver.ResolutionResult<TQ,TR>
TableRelationResolver. resolve(SqlQueryContext<?,Q,R> context)
Creates the EXISTS subquery using provided query context.Constructors in com.evolveum.midpoint.repo.sqlbase.mapping with parameters of type SqlQueryContext Constructor Description ResolutionResult(SqlQueryContext<?,TQ,TR> context, QueryModelMapping<?,TQ,TR> mapping)
ResolutionResult(SqlQueryContext<?,TQ,TR> context, QueryModelMapping<?,TQ,TR> mapping, boolean subquery)
Constructor parameters in com.evolveum.midpoint.repo.sqlbase.mapping with type arguments of type SqlQueryContext Constructor Description DefaultItemSqlMapper(@NotNull Function<SqlQueryContext<S,Q,R>,ItemValueFilterProcessor<?>> filterProcessorFactory)
DefaultItemSqlMapper(@NotNull Function<SqlQueryContext<S,Q,R>,ItemValueFilterProcessor<?>> filterProcessorFactory, @Nullable Function<Q,P> primaryItemMapping)
-