Class SqlQueryExecutor
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqlbase.SqlQueryExecutor
-
public class SqlQueryExecutor extends Object
Component just under the service that orchestrates query transformation and execution. Sql query executor itself does hold the query state, it usesSqlQueryContext
for that. This object manages configuration information and provides dataSource/connections for queries.
-
-
Constructor Summary
Constructors Constructor Description SqlQueryExecutor(SqlRepoContext sqlRepoContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S,Q extends FlexibleRelationalPathBase<R>,R>
intcount(@NotNull SqlQueryContext<S,Q,R> context, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options)
<S,Q extends FlexibleRelationalPathBase<R>,R>
SearchResultList<S>list(@NotNull SqlQueryContext<S,Q,R> context, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options)
-
-
-
Constructor Detail
-
SqlQueryExecutor
public SqlQueryExecutor(SqlRepoContext sqlRepoContext)
-
-
Method Detail
-
count
public <S,Q extends FlexibleRelationalPathBase<R>,R> int count(@NotNull @NotNull SqlQueryContext<S,Q,R> context, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) throws RepositoryException
- Throws:
RepositoryException
-
list
public <S,Q extends FlexibleRelationalPathBase<R>,R> SearchResultList<S> list(@NotNull @NotNull SqlQueryContext<S,Q,R> context, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) throws RepositoryException, SchemaException
- Throws:
RepositoryException
SchemaException
-
-