Class SqlQueryExecutor
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.pure.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(BaseHelper baseHelper, PrismContext prismContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S,Q extends FlexibleRelationalPathBase<R>,R>
intcount(@NotNull Class<S> schemaType, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options)
<S,Q extends FlexibleRelationalPathBase<R>,R>
SearchResultList<S>list(@NotNull Class<S> schemaType, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options)
-
-
-
Constructor Detail
-
SqlQueryExecutor
public SqlQueryExecutor(BaseHelper baseHelper, PrismContext prismContext)
-
-
Method Detail
-
count
public <S,Q extends FlexibleRelationalPathBase<R>,R> int count(@NotNull @NotNull Class<S> schemaType, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) throws QueryException
- Throws:
QueryException
-
list
public <S,Q extends FlexibleRelationalPathBase<R>,R> SearchResultList<S> list(@NotNull @NotNull Class<S> schemaType, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options) throws QueryException, SchemaException
- Throws:
QueryException
SchemaException
-
-