Package com.evolveum.midpoint.repo.sqale
Class SimulatedSqlQuery<T>
java.lang.Object
com.querydsl.core.support.QueryBase<Q>
com.querydsl.core.support.FetchableQueryBase<T,Q>
com.querydsl.core.support.FetchableSubQueryBase<T,Q>
com.querydsl.sql.ProjectableSQLQuery<T,Q>
com.querydsl.sql.AbstractSQLQuery<T,com.querydsl.sql.SQLQuery<T>>
com.querydsl.sql.SQLQuery<T>
com.evolveum.midpoint.repo.sqale.SimulatedSqlQuery<T>
- All Implemented Interfaces:
com.querydsl.core.Fetchable<T>,com.querydsl.core.FetchableQuery<T,,com.querydsl.sql.SQLQuery<T>> com.querydsl.core.FilteredClause<com.querydsl.sql.SQLQuery<T>>,com.querydsl.core.Query<com.querydsl.sql.SQLQuery<T>>,com.querydsl.core.SimpleQuery<com.querydsl.sql.SQLQuery<T>>,com.querydsl.core.support.ExtendedSubQuery<T>,com.querydsl.core.types.Expression<T>,com.querydsl.core.types.SubQueryExpression<T>,com.querydsl.sql.SQLCommonQuery<com.querydsl.sql.SQLQuery<T>>,Serializable
public class SimulatedSqlQuery<T>
extends com.querydsl.sql.SQLQuery<T>
Special subtype of
SQLQuery supporting needs of SqaleRepositoryService.executeQueryDiagnostics(com.evolveum.midpoint.schema.RepositoryQueryDiagRequest, com.evolveum.midpoint.schema.result.OperationResult).- See Also:
-
Field Summary
FieldsFields inherited from class com.querydsl.sql.AbstractSQLQuery
listeners, PARENT_CONTEXT, useLiteralsFields inherited from class com.querydsl.sql.ProjectableSQLQuery
configuration, firstUnionSubQuery, union, unionAllFields inherited from class com.querydsl.core.support.QueryBase
MDC_PARAMETERS, MDC_QUERY, queryMixin -
Constructor Summary
ConstructorsConstructorDescriptionSimulatedSqlQuery(@NotNull com.querydsl.sql.Configuration querydslConfiguration, @Nullable Connection conn, boolean simulationOnly) -
Method Summary
Modifier and TypeMethodDescriptioncom.querydsl.sql.SQLQuery<T>clone(Connection conn) WhenSqlQueryContext.executeQuery(com.evolveum.midpoint.repo.sqlbase.JdbcSession)calls this, we don't want it to create a new query object.protected voidlogQuery(String queryString, Collection<Object> parameters) This is called early in theAbstractSQLQuery.fetch()code and contains exactly what we need.Methods inherited from class com.querydsl.sql.SQLQuery
select, selectMethods inherited from class com.querydsl.sql.AbstractSQLQuery
addListener, as, as, clone, clone, createSerializer, endContext, fetch, fetchCount, fetchResults, forShare, forShare, forUpdate, getConfiguration, getResults, getResults, iterate, onException, setParameters, setStatementOptions, setUseLiterals, startContextMethods inherited from class com.querydsl.sql.ProjectableSQLQuery
accept, addFlag, addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, fetchOne, from, from, from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, getSQL, getSQL, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, on, on, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, serialize, toString, union, union, union, unionAll, unionAll, unionAll, with, with, with, withRecursive, withRecursive, withRecursiveMethods inherited from class com.querydsl.core.support.FetchableSubQueryBase
contains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExistsMethods inherited from class com.querydsl.core.support.FetchableQueryBase
equals, fetchFirst, transform, uniqueResultMethods inherited from class com.querydsl.core.support.QueryBase
distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, whereMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.Fetchable
fetchFirst, streamMethods inherited from interface com.querydsl.core.FetchableQuery
transformMethods inherited from interface com.querydsl.core.FilteredClause
whereMethods inherited from interface com.querydsl.core.Query
groupBy, havingMethods inherited from interface com.querydsl.core.SimpleQuery
distinct, limit, offset, orderBy, restrict, set
-
Field Details
-
SIMULATION_EXCEPTION
-
-
Constructor Details
-
SimulatedSqlQuery
public SimulatedSqlQuery(@NotNull @NotNull com.querydsl.sql.Configuration querydslConfiguration, @Nullable @Nullable Connection conn, boolean simulationOnly)
-
-
Method Details
-
clone
WhenSqlQueryContext.executeQuery(com.evolveum.midpoint.repo.sqlbase.JdbcSession)calls this, we don't want it to create a new query object. This will still execute fetch properly, but also stores parameters for serialized SQL form.- Overrides:
clonein classcom.querydsl.sql.SQLQuery<T>
-
logQuery
This is called early in theAbstractSQLQuery.fetch()code and contains exactly what we need. -
paramsMap
-