Class SqlQueryExecutor
java.lang.Object
com.evolveum.midpoint.repo.sqlbase.SqlQueryExecutor
Component just under the service that orchestrates query transformation and execution.
Sql query executor itself does hold the query state, it uses
SqlQueryContext
for that.
This object manages configuration information and provides dataSource/connections for queries.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<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>
@NotNull SearchResultList<S>list
(@NotNull SqlQueryContext<S, Q, R> context, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options)
-
Constructor Details
-
SqlQueryExecutor
-
-
Method Details
-
count
public <S,Q extends FlexibleRelationalPathBase<R>, int countR> (@NotNull @NotNull SqlQueryContext<S, Q, throws RepositoryExceptionR> context, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) - Throws:
RepositoryException
-
list
@NotNull public <S,Q extends FlexibleRelationalPathBase<R>, @NotNull SearchResultList<S> listR> (@NotNull @NotNull SqlQueryContext<S, Q, throws RepositoryException, SchemaExceptionR> context, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) - Throws:
RepositoryException
SchemaException
-