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 ofSQLQuery
supporting needs ofSqaleRepositoryService.executeQueryDiagnostics(com.evolveum.midpoint.schema.RepositoryQueryDiagRequest, com.evolveum.midpoint.schema.result.OperationResult)
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static RuntimeException
SIMULATION_EXCEPTION
-
Fields inherited from class com.querydsl.sql.AbstractSQLQuery
listeners, PARENT_CONTEXT, useLiterals
-
-
Constructor Summary
Constructors Constructor Description SimulatedSqlQuery(@NotNull com.querydsl.sql.Configuration querydslConfiguration, @Nullable Connection conn, boolean simulationOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.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 void
logQuery(String queryString, Collection<Object> parameters)
This is called early in theAbstractSQLQuery.fetch()
code and contains exactly what we need.Map<String,RepositoryQueryDiagResponse.ParameterValue>
paramsMap()
-
Methods 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, startContext
-
Methods 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, withRecursive
-
Methods 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, notExists
-
Methods inherited from class com.querydsl.core.support.FetchableQueryBase
equals, fetchFirst, transform, uniqueResult
-
Methods inherited from class com.querydsl.core.support.QueryBase
distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
-
-
-
-
Field Detail
-
SIMULATION_EXCEPTION
public static final RuntimeException SIMULATION_EXCEPTION
-
-
Constructor Detail
-
SimulatedSqlQuery
public SimulatedSqlQuery(@NotNull @NotNull com.querydsl.sql.Configuration querydslConfiguration, @Nullable @Nullable Connection conn, boolean simulationOnly)
-
-
Method Detail
-
clone
public com.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. This will still execute fetch properly, but also stores parameters for serialized SQL form.- Overrides:
clone
in classcom.querydsl.sql.SQLQuery<T>
-
logQuery
protected void logQuery(String queryString, Collection<Object> parameters)
This is called early in theAbstractSQLQuery.fetch()
code and contains exactly what we need.
-
paramsMap
public Map<String,RepositoryQueryDiagResponse.ParameterValue> paramsMap()
-
-